[U-Boot] [PATCH 2/7] misc: Tegra BPMP: support child node devices

Stephen Warren swarren at wwwdotorg.org
Mon Aug 1 17:56:13 CEST 2016


On 07/31/2016 07:03 PM, Simon Glass wrote:
> 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

>> 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.

It looks like it, yes.



More information about the U-Boot mailing list