From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitaly Kuzmichev Date: Thu, 02 Dec 2010 19:34:05 +0300 Subject: [U-Boot] [PATCH] usb_ether: register usb ethernet gadget at each eth init In-Reply-To: <1291218223-22511-1-git-send-email-leiwen@marvell.com> References: <1291218223-22511-1-git-send-email-leiwen@marvell.com> Message-ID: <4CF7CA7D.7090704@mvista.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 driver could simple ignore the register operation, if > it find the driver has been registered already. > > Signed-off-by: Lei Wen Tested, works fine on my board. BTW, for future reference the tags in the subject should be [U-Boot] [PATCH v2]. v2 points to that this is an improved/fixed version of a patch previously submitted. This can be reached using --subject-prefix="U-Boot] [PATCH v2" passed to git format-patch command. ____ Best regards, Vitaly.