]> git.sur5r.net Git - u-boot/commit
dm: pci: Correct primary/secondary/subordinate bus number assignment
authorBin Meng <bmeng.cn@gmail.com>
Sat, 18 Jul 2015 16:20:03 +0000 (00:20 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 28 Jul 2015 16:36:23 +0000 (10:36 -0600)
commit95f3aa209acde88f4273403733a0fb29ca28260d
tree5617e61011f18df418a2c49e2935bcaad49b0c70
parent7e378b8bfce342d773621af394ca192dba39cf34
dm: pci: Correct primary/secondary/subordinate bus number assignment

In driver model, each pci bridge device has its own hose structure.
hose->first_busno points to the bridge device's device number, so
we should not substract hose->first_busno before programming the
bridge device's primary/secondary/subordinate bus number registers.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_auto.c