diff options
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index e6b6b9c67023..337e16ab4a92 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -981,5 +981,15 @@ EXPORT_SYMBOL(pci_msi_enabled); | |||
981 | 981 | ||
982 | void pci_msi_init_pci_dev(struct pci_dev *dev) | 982 | void pci_msi_init_pci_dev(struct pci_dev *dev) |
983 | { | 983 | { |
984 | int pos; | ||
984 | INIT_LIST_HEAD(&dev->msi_list); | 985 | INIT_LIST_HEAD(&dev->msi_list); |
986 | |||
987 | /* Disable the msi hardware to avoid screaming interrupts | ||
988 | * during boot. This is the power on reset default so | ||
989 | * usually this should be a noop. | ||
990 | */ | ||
991 | pos = pci_find_capability(dev, PCI_CAP_ID_MSI); | ||
992 | if (pos) | ||
993 | msi_set_enable(dev, pos, 0); | ||
994 | msix_set_enable(dev, 0); | ||
985 | } | 995 | } |