[Pdbg] [PATCH v2 10/22] libpdbg: Probe should traverse virtual nodes also
Amitay Isaacs
amitay at ozlabs.org
Fri Sep 20 15:16:39 AEST 2019
This ensures that the virtual nodes have correct status in the system
device tree view.
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
libpdbg/target.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libpdbg/target.c b/libpdbg/target.c
index 667e55d..6252af3 100644
--- a/libpdbg/target.c
+++ b/libpdbg/target.c
@@ -437,6 +437,11 @@ enum pdbg_target_status pdbg_target_probe(struct pdbg_target *target)
}
}
+ /* Make sure any virtual nodes are also probed */
+ if (target->compatible && target->vnode) {
+ pdbg_target_probe(target->vnode);
+ }
+
/* At this point any parents must exist and have already been probed */
if (target->probe && target->probe(target)) {
/* Could not find the target */
--
2.21.0
More information about the Pdbg
mailing list