Skip to contentSkip to conversation

component: do not stop components lookup after first fail

PATCH New Andrzej Hajda 1 participant 1 message Dec 6, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): CGME20181206141159eucas1p2d8855194db968d33f30a82f0fe1ae638@eucas1p2.samsung.com

#1 lore raw

PATCH 1/1 component: do not stop components lookup after first fail

Currently showing content of /sys/kernel/debug/device_component/* works partially, in case one of the components is not available this and all remaining components have status not-registered, but the problem is only with the first one.
Allowing to finish lookup for other components in case one is missing solves the issue.

---
 drivers/base/component.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/component.c +1 -1
index e8d676fad0c9..e9572b37d5cf 100644
@@ -179,7 +179,7 @@ static int find_components(struct master *master)
 		c = find_component(master, mc->compare, mc->data);
 		if (!c) {
 			ret = -ENXIO;
-			break;
+			continue;
 		}
 
 		dev_dbg(master->dev, "found component %s, duplicate %u\n", dev_name(c->dev), !!c->master);
Signature · 1 line
2.17.1