[U-Boot] [PATCH] dm: Add a No-op uclass
Jean-Jacques Hiblot
jjhiblot at ti.com
Mon Apr 1 11:32:08 UTC 2019
Hi Simon,
On 30/03/2019 22:18, Simon Glass wrote:
> Hi Jean-Jacques,
>
> On Fri, 22 Mar 2019 at 10:44, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
>> This uclass is intended for devices that do not need any features from the
>> uclass, including binding children.
>> This will typically be used by devices that are used to bind child devices
>> but do not use dm_scan_fdt_dev() to do it.
>>
> Can you expand this motivation a little? I am not sure why calling
> dm_scan_fdt_dev() would be problematic.
In the case of the USB wrappers, there are 2 children nodes: one for
peripheral and one for host. The wrapper binds only one of them.
dm_scan_fdt_dev() would bind both.
>
> Also if you do add a new uclass it should have a sandbox driver and test.
There isn't much to test, except to check that the uclass is present.
The UCLASS itself does not provide any feature.
JJ
>
> Regards,
> Simon
>
More information about the U-Boot
mailing list