Skip to content

Commit

Permalink
[SCSI] qla2xxx: Ignore driver ack bit if corresponding presence bit i…
Browse files Browse the repository at this point in the history
…s not set.

Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
  • Loading branch information
Saurav Kashyap authored and James Bottomley committed Nov 30, 2012
1 parent 8c0bc70 commit 807fb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -4230,7 +4230,7 @@ qla83xx_need_reset_handler(scsi_qla_host_t *vha)
while (1) {
qla83xx_rd_reg(vha, QLA83XX_IDC_DRIVER_ACK, &drv_ack);
qla83xx_rd_reg(vha, QLA83XX_IDC_DRV_PRESENCE, &drv_presence);
if (drv_ack == drv_presence)
if ((drv_ack & drv_presence) == drv_presence)
break;

if (time_after_eq(jiffies, ack_timeout)) {
Expand Down

0 comments on commit 807fb6d

Please sign in to comment.