mirror of https://github.com/proxmox/mirror_qemu
ppc/pnv: Loop on the whole hierarchy to populate the DT with the XSCOM nodes
Some PnvXScomInterface objects lie a bit deeper (PnvPBCQState) than the first layer, so we need to loop on the whole object hierarchy to catch them. Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20191210135845.19773-2-clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org> [dwg: Corrected error in comment] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>master
parent
f0ec31b1e2
commit
109dce3786
|
@ -358,7 +358,12 @@ int pnv_dt_xscom(PnvChip *chip, void *fdt, int root_offset)
|
||||||
args.fdt = fdt;
|
args.fdt = fdt;
|
||||||
args.xscom_offset = xscom_offset;
|
args.xscom_offset = xscom_offset;
|
||||||
|
|
||||||
object_child_foreach(OBJECT(chip), xscom_dt_child, &args);
|
/*
|
||||||
|
* Loop on the whole object hierarchy to catch all
|
||||||
|
* PnvXScomInterface objects which can lie a bit deeper than the
|
||||||
|
* first layer.
|
||||||
|
*/
|
||||||
|
object_child_foreach_recursive(OBJECT(chip), xscom_dt_child, &args);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue