[U-Boot] [PATCH 2/3] drivers: core: uclass: Get next device fail with driver probe fail

Vladimir Olovyannikov vladimir.olovyannikov at broadcom.com
Fri Nov 22 22:23:22 UTC 2019


From: Srinath Mannam <srinath.mannam at broadcom.com>

Add changes to fix get next device failed if driver probe failed
issue. In Multi PCIe host controller platforms, if one PCIe host
driver probe failed with any reason then it stops to find next
PCIe host controller device pointer to call its driver probe.

Signed-off-by: Srinath Mannam <srinath.mannam at broadcom.com>
Signed-off-by: Vladimir Olovyannikov <vladimir.olovyannikov at broadcom.com>
---
 drivers/core/uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index c520ef113a..ab50f8f6db 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -442,7 +442,7 @@ int uclass_get_device_tail(struct udevice *dev, int ret, struct udevice **devp)
 	assert(dev);
 	ret = device_probe(dev);
 	if (ret)
-		return ret;
+		dev_dbg(dev, "%s device_probe failed\n", __func__);
 
 	*devp = dev;
 
-- 
2.17.1



More information about the U-Boot mailing list