[U-Boot] [PATCH] usb_ether: register usb ethernet gadget at each eth init

Remy Bohmer linux at bohmer.net
Thu Dec 9 19:53:08 CET 2010


Hi,

2010/12/1 Lei Wen <leiwen at marvell.com>:
> Since the ether may not be the only one usb gadget would be used
> in the uboot, it is neccessary to do the register each time the
> eth begin to work to make usb gadget driver less confussed when
> we want to use two different usb gadget at the same time.
>
> Usb gadget driver could simple ignore the register operation, if
> it find the driver has been registered already.
>
> Signed-off-by: Lei Wen <leiwen at marvell.com>
> ---
> V1: delete the usb_gadget_register_driver in usb_eth_initialize,
>    and judge whether gadget is registered at eth_halt.
>
>  drivers/usb/gadget/ether.c |   12 ++++++++----
>  1 files changed, 8 insertions(+), 4 deletions(-)
>

Applied to u-boot-usb.
Thanks.

Remy


More information about the U-Boot mailing list