summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2015-04-03 14:27:30 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-04-13 08:34:28 +0200
commitda440ab85970108761a090f676b1ad48ed3cfade (patch)
tree998eb50ec86c6d7ef5c32aa68e30bc071d98260b /include
parent394d4acb8dc3e1c32cd3ff02684628c14157de0a (diff)
downloadbarebox-da440ab85970108761a090f676b1ad48ed3cfade.tar.gz
barebox-da440ab85970108761a090f676b1ad48ed3cfade.tar.xz
pci: make sure to activate devices on the root bus
Commit b8a1bb1dd215 (pci: defer device registration until after bridge setup) changed the activation order of devices, so that bridges above the devices could be configured properly before activating the devices below. This commit failed to acknowledge that there may be devices located directly on the root bus without any bridge in between and so those devices would never get enabled. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 3d0e73bf9f..e422055baa 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -123,6 +123,7 @@ enum {
struct pci_bus {
struct pci_controller *host; /* associated host controller */
struct device_d *parent;
+ struct pci_bus *parent_bus; /* parent bus */
struct list_head node; /* node in list of buses */
struct list_head children; /* list of child buses */
struct list_head devices; /* list of devices on this bus */