Skip to content

Commit cbedb60

Browse files
avasquez01James Bottomley
authored andcommitted
[SCSI] qla2xxx: Add MSI support.
Supported ISP types include ISP2422 and revision-2 type ISP2432 chips. Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent a157b10 commit cbedb60

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

drivers/scsi/qla2xxx/qla_isr.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,17 @@ qla2x00_request_irqs(scsi_qla_host_t *ha)
17261726
qla_printk(KERN_WARNING, ha,
17271727
"MSI-X: Falling back-to INTa mode -- %d.\n", ret);
17281728
skip_msix:
1729+
1730+
if (!IS_QLA24XX(ha))
1731+
goto skip_msi;
1732+
1733+
ret = pci_enable_msi(ha->pdev);
1734+
if (!ret) {
1735+
DEBUG2(qla_printk(KERN_INFO, ha, "MSI: Enabled.\n"));
1736+
ha->flags.msi_enabled = 1;
1737+
}
1738+
skip_msi:
1739+
17291740
ret = request_irq(ha->pdev->irq, ha->isp_ops.intr_handler,
17301741
IRQF_DISABLED|IRQF_SHARED, QLA2XXX_DRIVER_NAME, ha);
17311742
if (!ret) {
@@ -1746,6 +1757,8 @@ qla2x00_free_irqs(scsi_qla_host_t *ha)
17461757

17471758
if (ha->flags.msix_enabled)
17481759
qla24xx_disable_msix(ha);
1749-
else if (ha->flags.inta_enabled)
1760+
else if (ha->flags.inta_enabled) {
17501761
free_irq(ha->host->irq, ha);
1762+
pci_disable_msi(ha->pdev);
1763+
}
17511764
}

0 commit comments

Comments
 (0)