]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:50:51 +0000 (13:50 +0200)
commitcf4685927f73d80fb8db6eaf1a1af1328c56c343
treeda7b823b80f4a5a17ed9bc94396e4fca79eab3e2
parentc838abd2ecc2a5be38faec9145a59cb26816a08f
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