diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2015-08-04 17:37:54 (GMT) |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-08-27 00:43:12 (GMT) |
commit | 8dd7e3a55949f17fecba4aedb2cb943b153e5e55 (patch) | |
tree | 90b4d19461e4fe67d2e370f8c6bee148eac7ed6f /drivers/scsi | |
parent | cc790764391a68511cf6a7e4dd18eeb6e7640233 (diff) | |
download | linux-8dd7e3a55949f17fecba4aedb2cb943b153e5e55.tar.xz |
qla2xxx: Pause risc before manipulating risc semaphore.
Signed-off-by: Joe Carnuccio <joe.carnuccio@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index f64bb6b..014f44f 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -1282,6 +1282,9 @@ qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha) vha->hw->pdev->subsystem_device != 0x0240) return; + WRT_REG_DWORD(&vha->hw->iobase->isp24.hccr, HCCRX_SET_RISC_PAUSE); + udelay(100); + attempt: timeout_msec = TIMEOUT_SEMAPHORE; n = timeout_msec / delta_msec; |