|
@@ -521,6 +521,8 @@ void pci_common_init_dev(struct device *parent, struct hw_pci *hw)
|
|
|
struct pci_bus *bus = sys->bus;
|
|
|
|
|
|
if (!pci_has_flag(PCI_PROBE_ONLY)) {
|
|
|
+ struct pci_bus *child;
|
|
|
+
|
|
|
/*
|
|
|
* Size the bridge windows.
|
|
|
*/
|
|
@@ -530,25 +532,15 @@ void pci_common_init_dev(struct device *parent, struct hw_pci *hw)
|
|
|
* Assign resources.
|
|
|
*/
|
|
|
pci_bus_assign_resources(bus);
|
|
|
- }
|
|
|
|
|
|
+ list_for_each_entry(child, &bus->children, node)
|
|
|
+ pcie_bus_configure_settings(child);
|
|
|
+ }
|
|
|
/*
|
|
|
* Tell drivers about devices found.
|
|
|
*/
|
|
|
pci_bus_add_devices(bus);
|
|
|
}
|
|
|
-
|
|
|
- list_for_each_entry(sys, &head, node) {
|
|
|
- struct pci_bus *bus = sys->bus;
|
|
|
-
|
|
|
- /* Configure PCI Express settings */
|
|
|
- if (bus && !pci_has_flag(PCI_PROBE_ONLY)) {
|
|
|
- struct pci_bus *child;
|
|
|
-
|
|
|
- list_for_each_entry(child, &bus->children, node)
|
|
|
- pcie_bus_configure_settings(child);
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
#ifndef CONFIG_PCI_HOST_ITE8152
|