]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[SCSI] qla2xxx: Check DFLG_NO_CABLE only on physical port.
authorSeokmann Ju <seokmann.ju@qlogic.com>
Thu, 3 Apr 2008 20:13:29 +0000 (13:13 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 7 Apr 2008 17:19:16 +0000 (12:19 -0500)
As there is no actual cable connection on vports, made change so
that the driver checks DFLG_NO_CABLE against ha->device_flags
only for physical port.

Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/qla2xxx/qla_os.c

index 4c50b9b53d232586ebbdc3adf93e9a7ebdd40a0a..8b33b163b1d427717ccea65b5e20f1822438e632 100644 (file)
@@ -2577,7 +2577,8 @@ qla2x00_timer(scsi_qla_host_t *ha)
                        set_bit(RESTART_QUEUES_NEEDED, &ha->dpc_flags);
                        start_dpc++;
 
-                       if (!(ha->device_flags & DFLG_NO_CABLE)) {
+                       if (!(ha->device_flags & DFLG_NO_CABLE) &&
+                           !ha->parent) {
                                DEBUG(printk("scsi(%ld): Loop down - "
                                    "aborting ISP.\n",
                                    ha->host_no));