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>
This commit is contained in:
committed by
Felix Held
parent
3138faa7cf
commit
7fcd4d58ec
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user