Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47767
b: refs/heads/master
c: d88021a
h: refs/heads/master
i:
  47765: 6fa7f1c
  47763: 28a8994
  47759: fdb8198
v: v3
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed Jan 31, 2007
1 parent 3201a41 commit 62d71f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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: a8488abefaa863a0c3a19888f03395adb3f1c6d2
refs/heads/master: d88021a6710e6ed5d1899ba2e54d4638026e277d
1 change: 1 addition & 0 deletions trunk/drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,7 @@ typedef struct scsi_qla_host {
uint32_t enable_lip_full_login :1;
uint32_t enable_target_reset :1;
uint32_t enable_led_scheme :1;
uint32_t inta_enabled :1;
uint32_t msi_enabled :1;
uint32_t msix_enabled :1;
uint32_t disable_serdes :1;
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1725,12 +1725,14 @@ qla2x00_request_irqs(scsi_qla_host_t *ha)
skip_msix:
ret = request_irq(ha->pdev->irq, ha->isp_ops.intr_handler,
IRQF_DISABLED|IRQF_SHARED, QLA2XXX_DRIVER_NAME, ha);
if (ret) {
if (!ret) {
ha->flags.inta_enabled = 1;
ha->host->irq = ha->pdev->irq;
} else {
qla_printk(KERN_WARNING, ha,
"Failed to reserve interrupt %d already in use.\n",
ha->pdev->irq);
}
ha->host->irq = ha->pdev->irq;

return ret;
}
Expand All @@ -1741,6 +1743,6 @@ qla2x00_free_irqs(scsi_qla_host_t *ha)

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

0 comments on commit 62d71f1

Please sign in to comment.