[U-Boot] [PATCH 2/8] dm: pci: Allow skipping device configuration

Bin Meng bmeng.cn at gmail.com
Mon Aug 31 11:52:47 CEST 2015


The non-dm pci driver can skip specified device configuration. With
dm conversion, this capability is lost. Add this back for dm pci.

Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---

 drivers/pci/pci-uclass.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c
index b25298f..0e64244 100644
--- a/drivers/pci/pci-uclass.c
+++ b/drivers/pci/pci-uclass.c
@@ -562,6 +562,9 @@ int pci_bind_bus_devices(struct udevice *bus)
 		struct udevice *dev;
 		ulong class;
 
+		if (pci_skip_dev(bus->uclass_priv, bdf))
+			continue;
+
 		if (PCI_FUNC(bdf) && !found_multi)
 			continue;
 		/* Check only the first access, we don't expect problems */
-- 
1.8.2.1



More information about the U-Boot mailing list