Hi Vladimir, On Sat, Nov 23, 2019 at 6:23 AM Vladimir Olovyannikov <vladimir.olovyanni...@broadcom.com> wrote: > > From: Srinath Mannam <srinath.man...@broadcom.com> > > Add changes to fix bus number of host bridge is set with device > sequence number issue. > All devices are managed using device sequence number. For PCIe, > devices enabled in DTS are added under PCIE_CLASS with consecutive > device sequence numbers to scan all pcie devices in sequence using > device sequence number. If a device is a bridge then it will enumerate > all endpoints in that bridge, and give sequence numbers in that order. > However, the parent device is a root bridge. > The solution is all bus numbers are device sequence number minus > root bridge sequence number. This way, every root bridge and its > downstream EPs bus numbers start from 0. > So root bridges are different hierarchy of bus numbers.
Could you please give an example for better understanding? > > Signed-off-by: Srinath Mannam <srinath.man...@broadcom.com> > Signed-off-by: Vladimir Olovyannikov <vladimir.olovyanni...@broadcom.com> > --- > drivers/pci/pci-uclass.c | 8 +++++--- > drivers/pci/pci_auto.c | 6 +++++- > 2 files changed, 10 insertions(+), 4 deletions(-) > Regards, Bin _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot