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

Stephen Warren swarren at wwwdotorg.org
Mon Aug 1 19:57:00 CEST 2016


From: Stephen Warren <swarren at 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 at 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;
 }
 
-- 
2.9.2



More information about the U-Boot mailing list