summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-05-10 21:08:06 -0600
committerSimon Glass <sjg@chromium.org>2015-06-04 03:34:47 -0600
commit2bb02e4fe22da5d982867c26e369730ea901f999 (patch)
tree7ce0e1b0e588d1bc0ce31be2b863baede678d89f /drivers
parent8939df092e24abdf39edb6fbca90fe9c2b44c3b1 (diff)
downloadtalos-obmc-uboot-2bb02e4fe22da5d982867c26e369730ea901f999.tar.gz
talos-obmc-uboot-2bb02e4fe22da5d982867c26e369730ea901f999.zip
dm: pci: Allow PCI bus numbering aliases
Commit 9cc36a2 'dm: core: Add a flag to control sequence numbering' changed the default uclass behaviour to not support bus numbering. This is incorrect for PCI and that commit should have enabled the flag for PCI. Enable it so that PCI buses can be found and the 'pci' command works again. Also add a test for this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/pci-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index d48d865bac..de87505466 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -596,6 +596,7 @@ int pci_bridge_write_config(struct udevice *bus, pci_dev_t devfn, uint offset,
UCLASS_DRIVER(pci) = {
.id = UCLASS_PCI,
.name = "pci",
+ .flags = DM_UC_FLAG_SEQ_ALIAS,
.post_bind = pci_uclass_post_bind,
.pre_probe = pci_uclass_pre_probe,
.post_probe = pci_uclass_post_probe,
OpenPOWER on IntegriCloud