]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
qla4xxx: Allow reset in link down case
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>
Fri, 23 Nov 2012 11:58:39 +0000 (06:58 -0500)
committerJerry Snitselaar <jerry.snitselaar@oracle.com>
Thu, 3 Jan 2013 17:51:53 +0000 (10:51 -0700)
Issue:
Reset operation fails if port is in Link Down state

Fix:
Do not wait till HBA comes online after reset command is invoked.

Signed-off-by: Harish Zunjarrao <harish.zunjarrao@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Tej Parkash <tej.parkash@qlogic.com>
drivers/scsi/qla4xxx/ql4_os.c

index d5ab4c21bf99baf547dfdf6ffb26eccee232f742..86eac2a2bb1df8e094114f11d1ac8fb4dbaa3f38 100644 (file)
@@ -6004,14 +6004,6 @@ static int qla4xxx_host_reset(struct Scsi_Host *shost, int reset_type)
                goto exit_host_reset;
        }
 
-       rval = qla4xxx_wait_for_hba_online(ha);
-       if (rval != QLA_SUCCESS) {
-               DEBUG2(ql4_printk(KERN_INFO, ha, "%s: Unable to reset host "
-                                 "adapter\n", __func__));
-               rval = -EIO;
-               goto exit_host_reset;
-       }
-
        if (test_bit(DPC_RESET_HA, &ha->dpc_flags))
                goto recover_adapter;