[PATCH] usb: gadget: ether: Handle gadget driver registration in start and stop

Mattijs Korpershoek mkorpershoek at baylibre.com
Wed Aug 21 14:34:13 CEST 2024


On mar., août 20, 2024 at 19:12, Marek Vasut <marex at denx.de> wrote:

> On 8/20/24 7:11 PM, Caleb Connolly wrote:
>> 
>>> Instead, to enable usb ethernet, we should manually bind the UDC driver
>>> to the usb_ether gadget.
>>>
>>> For example, on Khadas VIM3 board, this can be done with:
>>>
>>> => bind /soc/usb at ffe09000/usb at ff400000 usb_ether
>> 
>> It would be great if this could be done like ums where the UDC index is 
>> given rather than having to figure out the magic DT path incantation :D
>> 
>> => ums 0 scsi 0,1,2,3,4,5

Agreed, but we don't want to have one U-Boot command per gadget function.

>
> Yeah ... I wonder if we want an 'udc' command ?

This seems like a nice idea. I will give it some more thoughts and look
into prototyping something.


More information about the U-Boot mailing list