[U-Boot] [PATCH v3 7/7] cmd: Add bind/unbind commands to bind a device to a driver from the command line

Jagan Teki jagan at amarulasolutions.com
Wed Jul 11 13:57:47 UTC 2018


On Fri, Jun 22, 2018 at 5:55 PM, Jean-Jacques Hiblot <jjhiblot at ti.com> wrote:
> In some cases it can be useful to be able to bind a device to a driver from
> the command line.
> The obvious example is for versatile devices such as USB gadget.
> Another use case is when the devices are not yet ready at startup and
> require some setup before the drivers are bound (ex: FPGA which bitsream is
> fetched from a mass storage or ethernet)
>
> usage example:
>
> bind usb_dev_generic 0 usb_ether
> unbind usb_dev_generic 0 usb_ether
> or
> unbind eth 1

Apart from having separate dm command, can't we add this as a part of
'usb reset'  I'm thinking usb reset can show the all possible
controllers shutdown and probe it again so-that gadget can show it
like others. This is what I tried [1]

[1] https://patchwork.ozlabs.org/patch/941597/


More information about the U-Boot mailing list