Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270326
b: refs/heads/master
c: a513a99
h: refs/heads/master
v: v3
  • Loading branch information
Jon Mason authored and Jesse Barnes committed Oct 27, 2011
1 parent 3472773 commit 9035d3a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: a1c473aa11e61bc871be16279c9bf976acf22504
refs/heads/master: a513a99a7cebfb452839cc09c9c0586f72d96414
13 changes: 7 additions & 6 deletions trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1428,24 +1428,25 @@ static void pcie_write_mrrs(struct pci_dev *dev)

static int pcie_bus_configure_set(struct pci_dev *dev, void *data)
{
int mps = 128 << *(u8 *)data;
int mps, orig_mps;

if (!pci_is_pcie(dev))
return 0;

dev_dbg(&dev->dev, "Dev MPS %d MPSS %d MRRS %d\n",
pcie_get_mps(dev), 128<<dev->pcie_mpss, pcie_get_readrq(dev));
mps = 128 << *(u8 *)data;
orig_mps = pcie_get_mps(dev);

pcie_write_mps(dev, mps);
pcie_write_mrrs(dev);

dev_dbg(&dev->dev, "Dev MPS %d MPSS %d MRRS %d\n",
pcie_get_mps(dev), 128<<dev->pcie_mpss, pcie_get_readrq(dev));
dev_info(&dev->dev, "PCI-E Max Payload Size set to %4d/%4d (was %4d), "
"Max Read Rq %4d\n", pcie_get_mps(dev), 128 << dev->pcie_mpss,
orig_mps, pcie_get_readrq(dev));

return 0;
}

/* pcie_bus_configure_mps requires that pci_walk_bus work in a top-down,
/* pcie_bus_configure_settings requires that pci_walk_bus work in a top-down,
* parents then children fashion. If this changes, then this code will not
* work as designed.
*/
Expand Down

0 comments on commit 9035d3a

Please sign in to comment.