[SCSI] qla2xxx: Add changes to support extended IOs for ISPFX00
[cascardo/linux.git] / drivers / scsi / qla2xxx / qla_mr.c
index 27b8af8..f4c5d74 100644 (file)
@@ -1956,6 +1956,8 @@ qlafx00_fx_disc(scsi_qla_host_t *vha, fc_port_t *fcport, uint16_t fx_type)
                memcpy(&vha->hw->mr.fru_serial_num, pinfo->fru_serial_num,
                    sizeof(vha->hw->mr.fru_serial_num));
                vha->hw->mr.critical_temperature = pinfo->nominal_temp_value;
+               ha->mr.extended_io_enabled = (pinfo->enabled_capabilities &
+                   QLAFX00_EXTENDED_IO_EN_MASK) != 0;
        } else if (fx_type == FXDISC_GET_PORT_INFO) {
                struct port_info_data *pinfo =
                    (struct port_info_data *) fdisc->u.fxiocb.rsp_addr;
@@ -2799,9 +2801,6 @@ qlafx00_process_response_queue(struct scsi_qla_host *vha,
        struct sts_entry_fx00 *pkt;
        response_t *lptr;
 
-       if (!vha->flags.online)
-               return;
-
        while (RD_REG_DWORD((void __iomem *)&(rsp->ring_ptr->signature)) !=
            RESPONSE_PROCESSED) {
                lptr = rsp->ring_ptr;