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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
index a658c0f34e16..fcde04df6dfe 100644
--- a/drivers/pci/msi.c
+++ b/drivers/pci/msi.c
@@ -145,7 +145,7 @@ static int msi_set_mask_bits(struct irq_desc *desc, u32 mask, u32 flag)
145 if (!entry->msi_attrib.maskbit) 145 if (!entry->msi_attrib.maskbit)
146 return 0; 146 return 0;
147 147
148 pos = (long)entry->mask_base; 148 pos = entry->mask_pos;
149 pci_read_config_dword(entry->dev, pos, &mask_bits); 149 pci_read_config_dword(entry->dev, pos, &mask_bits);
150 mask_bits &= ~mask; 150 mask_bits &= ~mask;
151 mask_bits |= flag & mask; 151 mask_bits |= flag & mask;
@@ -363,8 +363,7 @@ static int msi_capability_init(struct pci_dev *dev)
363 unsigned int base, maskbits, temp; 363 unsigned int base, maskbits, temp;
364 364
365 base = msi_mask_bits_reg(pos, entry->msi_attrib.is_64); 365 base = msi_mask_bits_reg(pos, entry->msi_attrib.is_64);
366 entry->mask_base = (void __iomem *)(long)base; 366 entry->mask_pos = base;
367
368 /* All MSIs are unmasked by default, Mask them all */ 367 /* All MSIs are unmasked by default, Mask them all */
369 pci_read_config_dword(dev, base, &maskbits); 368 pci_read_config_dword(dev, base, &maskbits);
370 temp = msi_mask((control & PCI_MSI_FLAGS_QMASK) >> 1); 369 temp = msi_mask((control & PCI_MSI_FLAGS_QMASK) >> 1);