[U-Boot] [PATCH V2] misc: Tegra BPMP: support child node devices

From: Stephen Warren swarren@nvidia.com
The BPMP bindings allow devices to be represented as child nodes of the BPMP node. This requires the driver to trigger scanning of its node for those child nodes.
Signed-off-by: Stephen Warren swarren@nvidia.com --- v2: Use dm_scan_fdt_dev() to scan sub-nodes. This function was just added. --- drivers/misc/tegra186_bpmp.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index 147528da9269..87216dce8dea 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -129,6 +129,10 @@ static int tegra186_bpmp_bind(struct udevice *dev) if (ret) return ret;
+ ret = dm_scan_fdt_dev(dev); + if (ret) + return ret; + return 0; }

On 1 August 2016 at 11:57, Stephen Warren swarren@wwwdotorg.org wrote:
From: Stephen Warren swarren@nvidia.com
The BPMP bindings allow devices to be represented as child nodes of the BPMP node. This requires the driver to trigger scanning of its node for those child nodes.
Signed-off-by: Stephen Warren swarren@nvidia.com
v2: Use dm_scan_fdt_dev() to scan sub-nodes. This function was just added.
drivers/misc/tegra186_bpmp.c | 4 ++++ 1 file changed, 4 insertions(+)
Reviewed-by: Simon Glass sjg@chromium.org
participants (2)
-
Simon Glass
-
Stephen Warren