Skip to content

Commit 5a9ef25

Browse files
Wayne BoyerJames Bottomley
authored andcommitted
[SCSI] ipr: add MSI support
Enable MSI if available/supported. Signed-off-by: Wayne Boyer <[email protected]> Acked-by: Brian King <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent 951948a commit 5a9ef25

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

drivers/scsi/ipr.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7147,6 +7147,7 @@ static void ipr_free_all_resources(struct ipr_ioa_cfg *ioa_cfg)
71477147

71487148
ENTER;
71497149
free_irq(pdev->irq, ioa_cfg);
7150+
pci_disable_msi(pdev);
71507151
iounmap(ioa_cfg->hdw_dma_regs);
71517152
pci_release_regions(pdev);
71527153
ipr_free_mem(ioa_cfg);
@@ -7432,6 +7433,11 @@ static int __devinit ipr_probe_ioa(struct pci_dev *pdev,
74327433
goto out;
74337434
}
74347435

7436+
if (!(rc = pci_enable_msi(pdev)))
7437+
dev_info(&pdev->dev, "MSI enabled\n");
7438+
else if (ipr_debug)
7439+
dev_info(&pdev->dev, "Cannot enable MSI\n");
7440+
74357441
dev_info(&pdev->dev, "Found IOA with IRQ: %d\n", pdev->irq);
74367442

74377443
host = scsi_host_alloc(&driver_template, sizeof(*ioa_cfg));
@@ -7574,6 +7580,7 @@ static int __devinit ipr_probe_ioa(struct pci_dev *pdev,
75747580
out_scsi_host_put:
75757581
scsi_host_put(host);
75767582
out_disable:
7583+
pci_disable_msi(pdev);
75777584
pci_disable_device(pdev);
75787585
goto out;
75797586
}

drivers/scsi/ipr.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
/*
3838
* Literals
3939
*/
40-
#define IPR_DRIVER_VERSION "2.4.1"
41-
#define IPR_DRIVER_DATE "(April 24, 2007)"
40+
#define IPR_DRIVER_VERSION "2.4.2"
41+
#define IPR_DRIVER_DATE "(January 21, 2009)"
4242

4343
/*
4444
* IPR_MAX_CMD_PER_LUN: This defines the maximum number of outstanding

0 commit comments

Comments
 (0)