Skip to content

Commit

Permalink
[SCSI] qla2xxx: Check DFLG_NO_CABLE only on physical port.
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Vasquez <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
Seokmann Ju authored and James Bottomley committed Apr 7, 2008
1 parent d4486fd commit 463717e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 463717e

Please sign in to comment.