
9 Dec
2010
9 Dec
'10
7:53 p.m.
Hi,
2010/12/1 Lei Wen leiwen@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@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