[Pdbg] [PATCH v2 10/22] libpdbg: Probe should traverse virtual nodes also
Alistair Popple
alistair at popple.id.au
Mon Sep 23 13:39:35 AEST 2019
Reviewed-by: Alistair Popple <alistair at popple.id.au>
On Friday, 20 September 2019 3:16:39 PM AEST Amitay Isaacs wrote:
> 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 */
>
More information about the Pdbg
mailing list