Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55238
b: refs/heads/master
c: cbedb60
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed May 8, 2007
1 parent c82c30e commit 561d3a9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a157b1014f9eaf7f80f9105defed2117c5f6653c
refs/heads/master: cbedb601868821c9bfdcf1e9194be160deceeecb
15 changes: 14 additions & 1 deletion trunk/drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1726,6 +1726,17 @@ qla2x00_request_irqs(scsi_qla_host_t *ha)
qla_printk(KERN_WARNING, ha,
"MSI-X: Falling back-to INTa mode -- %d.\n", ret);
skip_msix:

if (!IS_QLA24XX(ha))
goto skip_msi;

ret = pci_enable_msi(ha->pdev);
if (!ret) {
DEBUG2(qla_printk(KERN_INFO, ha, "MSI: Enabled.\n"));
ha->flags.msi_enabled = 1;
}
skip_msi:

ret = request_irq(ha->pdev->irq, ha->isp_ops.intr_handler,
IRQF_DISABLED|IRQF_SHARED, QLA2XXX_DRIVER_NAME, ha);
if (!ret) {
Expand All @@ -1746,6 +1757,8 @@ qla2x00_free_irqs(scsi_qla_host_t *ha)

if (ha->flags.msix_enabled)
qla24xx_disable_msix(ha);
else if (ha->flags.inta_enabled)
else if (ha->flags.inta_enabled) {
free_irq(ha->host->irq, ha);
pci_disable_msi(ha->pdev);
}
}

0 comments on commit 561d3a9

Please sign in to comment.