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

2010-12-09 Thread Remy Bohmer
Hi, 2010/12/1 Lei Wen lei...@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.

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

2010-12-02 Thread Vitaly Kuzmichev
Hi Lei, Lei Wen wrote: 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

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

2010-12-02 Thread Lei Wen
Hi Vitaly, On Fri, Dec 3, 2010 at 12:34 AM, Vitaly Kuzmichev vkuzmic...@mvista.com wrote: Hi Lei, Lei Wen wrote: 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

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

2010-12-01 Thread Lei Wen
Hi Vitaly, On Wed, Dec 1, 2010 at 12:41 AM, Vitaly Kuzmichev vkuzmic...@mvista.com wrote: Hi Lei, Lei Wen wrote: [...] For current ether.c state, there is no usb_gadget_unregister_driver in it. Even it has, we still need usb_gadget_register_driver call in each eth_init(). Yes, if we do

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

2010-12-01 Thread Lei Wen
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

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

2010-11-30 Thread Vitaly Kuzmichev
Hi Lei, Lei Wen wrote: Hi Vitaly, [...] And additional calling of usb_gadget_unregister_driver will at most return an error. For current ether.c state, there is no usb_gadget_unregister_driver in it. Even it has, we still need usb_gadget_register_driver call in each eth_init(). Yes, if

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

2010-11-30 Thread Lei Wen
Hi Vitaly, On Tue, Nov 30, 2010 at 11:13 PM, Vitaly Kuzmichev vkuzmic...@mvista.com wrote: Hi Lei, Lei Wen wrote: Hi Vitaly, [...] And additional calling of usb_gadget_unregister_driver will at most return an error. For current ether.c state, there is no usb_gadget_unregister_driver in

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

2010-11-30 Thread Vitaly Kuzmichev
Hi Lei, Lei Wen wrote: [...] For current ether.c state, there is no usb_gadget_unregister_driver in it. Even it has, we still need usb_gadget_register_driver call in each eth_init(). Yes, if we do 'unregister' we should do 'register' somewhere before. If we do 'register' we should do

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

2010-11-29 Thread Vitaly Kuzmichev
Hi Lei, Lei Wen wrote: Hi Vitaly, [...] + if (usb_gadget_register_driver(eth_driver) 0) + goto fail; You probably need then at least to remove usb_gadget_register_driver call from usb_eth_initialize. And add usb_gadget_unregister_driver in usb_eth_halt. I am afraid

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

2010-11-29 Thread Vitaly Kuzmichev
Vitaly Kuzmichev wrote: Hi Lei, Lei Wen wrote: Hi Vitaly, [...] + if (usb_gadget_register_driver(eth_driver) 0) + goto fail; You probably need then at least to remove usb_gadget_register_driver call from usb_eth_initialize. And add usb_gadget_unregister_driver in

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

2010-11-29 Thread Lei Wen
Hi Vitaly, On Mon, Nov 29, 2010 at 9:56 PM, Vitaly Kuzmichev vkuzmic...@mvista.com wrote: Hi Lei, Lei Wen wrote: Hi Vitaly, [...] +     if (usb_gadget_register_driver(eth_driver) 0) +             goto fail; You probably need then at least to remove usb_gadget_register_driver call from

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

2010-11-27 Thread Lei Wen
Hi Vitaly, On Sat, Nov 27, 2010 at 2:23 AM, Vitaly Kuzmichev vkuzmic...@mvista.com wrote: Hi Lei, Lei Wen wrote: 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

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

2010-11-26 Thread Vitaly Kuzmichev
Hi Lei, Lei Wen wrote: 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. [...] @@ -1788,6

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

2010-11-25 Thread Lei Wen
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