[U-Boot] [PATCH 2/7] misc: Tegra BPMP: support child node devices
Simon Glass
sjg at chromium.org
Mon Aug 1 03:03:46 CEST 2016
Hi Stephen,
On 29 July 2016 at 13:15, Stephen Warren <swarren at wwwdotorg.org> wrote:
> 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>
> ---
> 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..526d812ecd39 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_node(dev, gd->fdt_blob, dev->of_offset, false);
> + if (ret)
> + return ret;
> +
Can you use dm_scan_fdt_dev() here? Hot off the press.
> return 0;
> }
>
> --
> 2.9.2
>
Regards,
Simon
More information about the U-Boot
mailing list