summaryrefslogtreecommitdiff
path: root/src/device/hypertransport.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2015-03-12 05:56:22 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2015-06-04 11:18:04 +0200
commit6ccf119932661eaf63af0ee3a276a6d2f2f27b89 (patch)
tree8e2eeea6b26e096ad11f10bcb1780fd6a54776f8 /src/device/hypertransport.c
parentb39714e5ee07deb36165d4c4f85b4b1effbd30c6 (diff)
HyperTransport: Use subordinate property to track chain enumeration
For amdfam10, (ht_c_index > 3) never evaluates true as the code already has a return for this case above. Change-Id: Ie90941671e1b2b4f42e2b1b0641ca59334fcf0f1 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8688 Tested-by: build bot (Jenkins) Reviewed-by: Timothy Pearson <tpearson@raptorengineeringinc.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/hypertransport.c')
-rw-r--r--src/device/hypertransport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c
index 1a2e7ff2f4..84b1aa7f63 100644
--- a/src/device/hypertransport.c
+++ b/src/device/hypertransport.c
@@ -501,8 +501,8 @@ static unsigned int hypertransport_scan_chain_x(struct bus *bus,
ht_unitid_base, offset_unitid);
/* Now that nothing is overlapping it is safe to scan the children. */
- max = pci_scan_bus(bus, 0x00, ((next_unitid - 1) << 3) | 7, max);
- return max;
+ bus->subordinate = pci_scan_bus(bus, 0x00, ((next_unitid - 1) << 3) | 7, bus->secondary);
+ return bus->subordinate;
}
unsigned int ht_scan_bridge(struct device *dev, unsigned int max)