Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21810
b: refs/heads/master
c: 9ac341a
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik committed Feb 2, 2006
1 parent a09f900 commit ddd7073
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 18ee3610040a4c008ce08a40a5dd025241cc7e97
refs/heads/master: 9ac341ae799413708e674bc65c8a72c90dae8d34
11 changes: 10 additions & 1 deletion trunk/drivers/scsi/sata_mv.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,12 @@ static const struct mv_hw_ops mv6xxx_ops = {
.reset_bus = mv_reset_pci_bus,
};

/*
* module options
*/
static int msi; /* Use PCI msi; either zero (off, default) or non-zero */


/*
* Functions
*/
Expand Down Expand Up @@ -2369,7 +2375,7 @@ static int mv_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
}

/* Enable interrupts */
if (pci_enable_msi(pdev) == 0) {
if (msi && pci_enable_msi(pdev) == 0) {
hpriv->hp_flags |= MV_HP_FLAG_MSI;
} else {
pci_intx(pdev, 1);
Expand Down Expand Up @@ -2424,5 +2430,8 @@ MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, mv_pci_tbl);
MODULE_VERSION(DRV_VERSION);

module_param(msi, int, 0444);
MODULE_PARM_DESC(msi, "Enable use of PCI MSI (0=off, 1=on)");

module_init(mv_init);
module_exit(mv_exit);

0 comments on commit ddd7073

Please sign in to comment.