Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346983
b: refs/heads/master
c: 17a2635
h: refs/heads/master
i:
  346981: fb60766
  346979: 8773870
  346975: 4ab5a43
v: v3
  • Loading branch information
Wei Yongjun authored and Chris Metcalf committed Dec 12, 2012
1 parent 8e90a64 commit 652cf79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 5955a5966632d0f49cb9418ae437db604db295d9
refs/heads/master: 17a263540cebd4c615755300f34c695b15378a58
4 changes: 2 additions & 2 deletions trunk/arch/tile/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static void __devinit fixup_read_and_payload_sizes(void)
u16 new_values;

/* Scan for the smallest maximum payload size. */
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
for_each_pci_dev(dev) {
u32 devcap;
int max_payload;

Expand All @@ -260,7 +260,7 @@ static void __devinit fixup_read_and_payload_sizes(void)

/* Now, set the max_payload_size for all devices to that value. */
new_values = (max_read_size << 12) | (smallest_max_payload << 5);
while ((dev = pci_get_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL)
for_each_pci_dev(dev)
pcie_capability_clear_and_set_word(dev, PCI_EXP_DEVCTL,
PCI_EXP_DEVCTL_PAYLOAD | PCI_EXP_DEVCTL_READRQ,
new_values);
Expand Down

0 comments on commit 652cf79

Please sign in to comment.