diff options
author | Joe Carnuccio <joe.carnuccio@qlogic.com> | 2015-08-04 13:37:53 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-08-26 20:40:44 -0400 |
commit | cc790764391a68511cf6a7e4dd18eeb6e7640233 (patch) | |
tree | 5bc42e4ec3dc3c73399bc4b007d417c181911a31 | |
parent | 17cac3a175a02cd1ae21f9183b09f30a719832df (diff) |
qla2xxx: Use ssdid to gate semaphore manipulation.
Execute qla25xx_manipulate_risc_semaphore() only for
ssdid 0x0175 and 0x0240.
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>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 5a5ca43e5e90..f64bb6b7a08f 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c | |||
@@ -1272,14 +1272,14 @@ qla25xx_write_risc_sema_reg(scsi_qla_host_t *vha, uint32_t data) | |||
1272 | static void | 1272 | static void |
1273 | qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha) | 1273 | qla25xx_manipulate_risc_semaphore(scsi_qla_host_t *vha) |
1274 | { | 1274 | { |
1275 | struct qla_hw_data *ha = vha->hw; | ||
1276 | uint32_t wd32 = 0; | 1275 | uint32_t wd32 = 0; |
1277 | uint delta_msec = 100; | 1276 | uint delta_msec = 100; |
1278 | uint elapsed_msec = 0; | 1277 | uint elapsed_msec = 0; |
1279 | uint timeout_msec; | 1278 | uint timeout_msec; |
1280 | ulong n; | 1279 | ulong n; |
1281 | 1280 | ||
1282 | if (!IS_QLA25XX(ha) && !IS_QLA2031(ha)) | 1281 | if (vha->hw->pdev->subsystem_device != 0x0175 && |
1282 | vha->hw->pdev->subsystem_device != 0x0240) | ||
1283 | return; | 1283 | return; |
1284 | 1284 | ||
1285 | attempt: | 1285 | attempt: |