From 63bdef1827f5a98ab375877cb994ef92c33a0b8a Mon Sep 17 00:00:00 2001 From: Shreyansh Jain Date: Sat, 12 Aug 2017 15:52:20 +0530 Subject: [PATCH] bus: ignore scan and probe failures Bus scan is responsible for finding devices over *all* buses. Some of these buses might not be able to scan but that should not prevent other buses to be scanned. Same is the case for probing. It is possible that some devices which were scanned didn't have a specific driver. That should not prevent other buses from being probed. Signed-off-by: Shreyansh Jain Tested-by: Hemant Agrawal --- lib/librte_eal/common/eal_common_bus.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c index a30a8982ed..c3c77f42fd 100644 --- a/lib/librte_eal/common/eal_common_bus.c +++ b/lib/librte_eal/common/eal_common_bus.c @@ -73,11 +73,9 @@ rte_bus_scan(void) TAILQ_FOREACH(bus, &rte_bus_list, next) { ret = bus->scan(); - if (ret) { + if (ret) RTE_LOG(ERR, EAL, "Scan for (%s) bus failed.\n", bus->name); - return ret; - } } return 0; @@ -97,20 +95,16 @@ rte_bus_probe(void) } ret = bus->probe(); - if (ret) { + if (ret) RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n", bus->name); - return ret; - } } if (vbus) { ret = vbus->probe(); - if (ret) { + if (ret) RTE_LOG(ERR, EAL, "Bus (%s) probe failed.\n", vbus->name); - return ret; - } } return 0; -- 2.20.1