diff options
author | Chad Dupuis <chad.dupuis@qlogic.com> | 2011-08-16 14:29:24 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 10:18:47 -0400 |
commit | 42cd4f5dc2a3de31bfd24642ab4e8b21834a6b78 (patch) | |
tree | 4c447aff55eef3f7e37f9d401efae53dbf9cab8f /drivers | |
parent | e02587d777bfb398f70709fd3a92fa0154959003 (diff) |
[SCSI] qla2xxx: Fix qla24xx revision check while enabling interrupts.
Since we enable interrupts before initializing the firmware, use the chip
revision from PCI config space directly to perform the chip revision check.
Also remove the unnecessary firmware attributes test.
Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_isr.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c index ec53e87781a5..477767fcfd1e 100644 --- a/drivers/scsi/qla2xxx/qla_isr.c +++ b/drivers/scsi/qla2xxx/qla_isr.c | |||
@@ -2529,11 +2529,10 @@ qla2x00_request_irqs(struct qla_hw_data *ha, struct rsp_que *rsp) | |||
2529 | goto skip_msi; | 2529 | goto skip_msi; |
2530 | } | 2530 | } |
2531 | 2531 | ||
2532 | if (IS_QLA2432(ha) && (ha->pdev->revision < QLA_MSIX_CHIP_REV_24XX || | 2532 | if (IS_QLA2432(ha) && (ha->pdev->revision < QLA_MSIX_CHIP_REV_24XX)) { |
2533 | !QLA_MSIX_FW_MODE_1(ha->fw_attributes))) { | ||
2534 | ql_log(ql_log_warn, vha, 0x0035, | 2533 | ql_log(ql_log_warn, vha, 0x0035, |
2535 | "MSI-X; Unsupported ISP2432 (0x%X, 0x%X).\n", | 2534 | "MSI-X; Unsupported ISP2432 (0x%X, 0x%X).\n", |
2536 | ha->pdev->revision, ha->fw_attributes); | 2535 | ha->pdev->revision, QLA_MSIX_CHIP_REV_24XX); |
2537 | goto skip_msix; | 2536 | goto skip_msix; |
2538 | } | 2537 | } |
2539 | 2538 | ||