aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/msi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r--drivers/pci/msi.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index d40bed726769..2c1075213bec 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -563,8 +563,10 @@ static int msi_capability_init(struct pci_dev *dev, int nvec)
563 entry->msi_attrib.default_irq = dev->irq; /* Save IOAPIC IRQ */ 563 entry->msi_attrib.default_irq = dev->irq; /* Save IOAPIC IRQ */
564 entry->msi_attrib.pos = dev->msi_cap; 564 entry->msi_attrib.pos = dev->msi_cap;
565 565
566 entry->mask_pos = dev->msi_cap + (control & PCI_MSI_FLAGS_64BIT) ? 566 if (control & PCI_MSI_FLAGS_64BIT)
567 PCI_MSI_MASK_64 : PCI_MSI_MASK_32; 567 entry->mask_pos = dev->msi_cap + PCI_MSI_MASK_64;
568 else
569 entry->mask_pos = dev->msi_cap + PCI_MSI_MASK_32;
568 /* All MSIs are unmasked by default, Mask them all */ 570 /* All MSIs are unmasked by default, Mask them all */
569 if (entry->msi_attrib.maskbit) 571 if (entry->msi_attrib.maskbit)
570 pci_read_config_dword(dev, entry->mask_pos, &entry->masked); 572 pci_read_config_dword(dev, entry->mask_pos, &entry->masked);