aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/sata_mv.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index b55dd839ddbd..3e916327ae37 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -569,6 +569,12 @@ static const struct mv_hw_ops mv6xxx_ops = {
569}; 569};
570 570
571/* 571/*
572 * module options
573 */
574static int msi; /* Use PCI msi; either zero (off, default) or non-zero */
575
576
577/*
572 * Functions 578 * Functions
573 */ 579 */
574 580
@@ -2369,7 +2375,7 @@ static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
2369 } 2375 }
2370 2376
2371 /* Enable interrupts */ 2377 /* Enable interrupts */
2372 if (pci_enable_msi(pdev) == 0) { 2378 if (msi && pci_enable_msi(pdev) == 0) {
2373 hpriv->hp_flags |= MV_HP_FLAG_MSI; 2379 hpriv->hp_flags |= MV_HP_FLAG_MSI;
2374 } else { 2380 } else {
2375 pci_intx(pdev, 1); 2381 pci_intx(pdev, 1);
@@ -2424,5 +2430,8 @@ MODULE_LICENSE("GPL");
2424MODULE_DEVICE_TABLE(pci, mv_pci_tbl); 2430MODULE_DEVICE_TABLE(pci, mv_pci_tbl);
2425MODULE_VERSION(DRV_VERSION); 2431MODULE_VERSION(DRV_VERSION);
2426 2432
2433module_param(msi, int, 0444);
2434MODULE_PARM_DESC(msi, "Enable use of PCI MSI (0=off, 1=on)");
2435
2427module_init(mv_init); 2436module_init(mv_init);
2428module_exit(mv_exit); 2437module_exit(mv_exit);