summaryrefslogtreecommitdiff
path: root/src/device/root_device.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2023-08-24 15:12:19 +0200
committerFelix Held <felix-coreboot@felixheld.de>2024-01-31 10:36:39 +0000
commit7fcd4d58ec7ea2da31c258ba9d8601f086d7f8d8 (patch)
tree1bddf10cecf4577fee207e0dbc6f7a5c1b10af13 /src/device/root_device.c
parent3138faa7cf1b91e0b56ad0b1be6260cf4251a284 (diff)
device/device.h: Rename busses for clarity
This renames bus to upstream and link_list to downstream. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: I80a81b6b8606e450ff180add9439481ec28c2420 Reviewed-on: https://review.coreboot.org/c/coreboot/+/78330 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/device/root_device.c')
-rw-r--r--src/device/root_device.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/device/root_device.c b/src/device/root_device.c
index 54e82ea602..0164b19e99 100644
--- a/src/device/root_device.c
+++ b/src/device/root_device.c
@@ -39,10 +39,10 @@ void enable_static_devices(struct device *bus)
{
struct device *child;
- if (!bus->link_list)
+ if (!bus->downstream)
return;
- for (child = bus->link_list->children; child; child = child->sibling)
+ for (child = bus->downstream->children; child; child = child->sibling)
enable_static_device(child);
}
@@ -53,12 +53,12 @@ void scan_generic_bus(struct device *bus)
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
- if (bus->link_list) {
- bus->link_list->secondary = ++bus_max;
+ if (bus->downstream) {
+ bus->downstream->secondary = ++bus_max;
- for (child = bus->link_list->children; child; child = child->sibling) {
+ for (child = bus->downstream->children; child; child = child->sibling) {
enable_static_device(child);
- printk(BIOS_DEBUG, "bus: %s->", dev_path(child->bus->dev));
+ printk(BIOS_DEBUG, "bus: %s->", dev_path(child->upstream->dev));
}
}
@@ -86,8 +86,8 @@ void scan_static_bus(struct device *bus)
enable_static_devices(bus);
- if (bus->link_list)
- scan_bridges(bus->link_list);
+ if (bus->downstream)
+ scan_bridges(bus->downstream);
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
}