Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 263701
b: refs/heads/master
c: 5307f6d
h: refs/heads/master
i:
  263699: 7574bd5
v: v3
  • Loading branch information
Shyam Iyer authored and Linus Torvalds committed Sep 10, 2011
1 parent 68c2827 commit 643ced9
Show file tree
Hide file tree
Showing 4 changed files with 11 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: a6a5ed0dd36b4977789e888170f96840cc8b4501
refs/heads/master: 5307f6d5fb12fd01f9f321bc4a8fd77e74858647
9 changes: 7 additions & 2 deletions trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,13 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_pci_root *root)
*/
if (bus) {
struct pci_bus *child;
list_for_each_entry(child, &bus->children, node)
pcie_bus_configure_settings(child, child->self->pcie_mpss);
list_for_each_entry(child, &bus->children, node) {
struct pci_dev *self = child->self;
if (!self)
continue;

pcie_bus_configure_settings(child, self->pcie_mpss);
}
}

if (!bus)
Expand Down
4 changes: 3 additions & 1 deletion trunk/drivers/pci/hotplug/pcihp_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ void pci_configure_slot(struct pci_dev *dev)
(dev->class >> 8) == PCI_CLASS_BRIDGE_PCI)))
return;

pcie_bus_configure_settings(dev->bus, dev->bus->self->pcie_mpss);
if (dev->bus && dev->bus->self)
pcie_bus_configure_settings(dev->bus,
dev->bus->self->pcie_mpss);

memset(&hpp, 0, sizeof(hpp));
ret = pci_get_hp_params(dev, &hpp);
Expand Down
3 changes: 0 additions & 3 deletions trunk/drivers/pci/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,9 +1456,6 @@ void pcie_bus_configure_settings(struct pci_bus *bus, u8 mpss)
{
u8 smpss = mpss;

if (!bus->self)
return;

if (!pci_is_pcie(bus->self))
return;

Expand Down

0 comments on commit 643ced9

Please sign in to comment.