]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: pci: Allow a PCI bus to be found without an alias
authorSimon Glass <sjg@chromium.org>
Tue, 1 Sep 2015 00:55:35 +0000 (18:55 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 9 Sep 2015 13:48:03 +0000 (07:48 -0600)
commit983c6ba227e192c79b1df82853d8bacd40e1e989
treec2685a05573b12c7bbbb431399de140ba367b8ed
parent8270e3c12eefbbb785ae145835cb0349091e257a
dm: pci: Allow a PCI bus to be found without an alias

At present, until a PCI bus is probed, it cannot be found by its sequence
number unless it has an alias. This is the same with any device.

However with PCI this is more annoying than usual, since bus 0 is always the
same device.

Add a function that tries a little harder to locate PCI bus 0. This means
that PCI enumeration will happen automatically on the first access.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c