Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139354
b: refs/heads/master
c: 264d9ca
h: refs/heads/master
v: v3
  • Loading branch information
Matthew Wilcox authored and Jesse Barnes committed Mar 20, 2009
1 parent 52d91e6 commit 8236251
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 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: 379f5327a86f7822a51ec7d088a085167724df75
refs/heads/master: 264d9caaa1c574c0274b019a810abfe957391005
5 changes: 2 additions & 3 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static int msi_set_mask_bits(struct irq_desc *desc, u32 mask, u32 flag)
if (!entry->msi_attrib.maskbit)
return 0;

pos = (long)entry->mask_base;
pos = entry->mask_pos;
pci_read_config_dword(entry->dev, pos, &mask_bits);
mask_bits &= ~mask;
mask_bits |= flag & mask;
Expand Down Expand Up @@ -363,8 +363,7 @@ static int msi_capability_init(struct pci_dev *dev)
unsigned int base, maskbits, temp;

base = msi_mask_bits_reg(pos, entry->msi_attrib.is_64);
entry->mask_base = (void __iomem *)(long)base;

entry->mask_pos = base;
/* All MSIs are unmasked by default, Mask them all */
pci_read_config_dword(dev, base, &maskbits);
temp = msi_mask((control & PCI_MSI_FLAGS_QMASK) >> 1);
Expand Down
5 changes: 4 additions & 1 deletion trunk/include/linux/msi.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ struct msi_desc {
unsigned int irq;
struct list_head list;

void __iomem *mask_base;
union {
void __iomem *mask_base;
u8 mask_pos;
};
struct pci_dev *dev;

/* Last set MSI message */
Expand Down

0 comments on commit 8236251

Please sign in to comment.