Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362906
b: refs/heads/master
c: f84ecd2
h: refs/heads/master
v: v3
  • Loading branch information
Bjorn Helgaas committed Apr 23, 2013
1 parent c405355 commit 1160879
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 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: f5322169b4bc931c760c6a14484582a95c39edde
refs/heads/master: f84ecd285f40012f804173110c10f2caaa23b7ee
8 changes: 4 additions & 4 deletions trunk/drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
int pos = dev->msi_cap;
u16 msgctl;

pci_read_config_word(dev, msi_control_reg(pos), &msgctl);
pci_read_config_word(dev, pos + PCI_MSI_FLAGS, &msgctl);
msgctl &= ~PCI_MSI_FLAGS_QSIZE;
msgctl |= entry->msi_attrib.multiple << 4;
pci_write_config_word(dev, msi_control_reg(pos), msgctl);
pci_write_config_word(dev, pos + PCI_MSI_FLAGS, msgctl);

pci_write_config_dword(dev, msi_lower_address_reg(pos),
msg->address_lo);
Expand Down Expand Up @@ -548,7 +548,7 @@ static int msi_capability_init(struct pci_dev *dev, int nvec)

msi_set_enable(dev, 0); /* Disable MSI during set up */

pci_read_config_word(dev, msi_control_reg(dev->msi_cap), &control);
pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, &control);
/* MSI Entry Initialization */
entry = alloc_msi_entry(dev);
if (!entry)
Expand Down Expand Up @@ -903,7 +903,7 @@ int pci_msix_table_size(struct pci_dev *dev)
if (!dev->msix_cap)
return 0;

pci_read_config_word(dev, msi_control_reg(dev->msix_cap), &control);
pci_read_config_word(dev, dev->msix_cap + PCI_MSIX_FLAGS, &control);
return multi_msix_capable(control);
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/pci/msi.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#ifndef MSI_H
#define MSI_H

#define msi_control_reg(base) (base + PCI_MSI_FLAGS)
#define msi_lower_address_reg(base) (base + PCI_MSI_ADDRESS_LO)
#define msi_upper_address_reg(base) (base + PCI_MSI_ADDRESS_HI)
#define msi_data_reg(base, is64bit) \
Expand Down

0 comments on commit 1160879

Please sign in to comment.