public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] usb: properly re-initialize the USB keyboard.
@ 2013-05-11  2:48 Simon Glass
  2013-05-11  2:48 ` [U-Boot] [PATCH 2/3] usb: workaround non-working keyboards Simon Glass
  2013-05-11  2:49 ` [U-Boot] [PATCH 3/3] usb: Correct CLEAR_FEATURE code in ehci-hcd Simon Glass
  0 siblings, 2 replies; 7+ messages in thread
From: Simon Glass @ 2013-05-11  2:48 UTC (permalink / raw)
  To: u-boot

From: Vincent Palatin <vpalatin@chromium.org>

Allow to reconfigure properly the USB keyboard driver when we enumerate
several times the USB devices and its position in the device tree has
changes.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
---
 common/usb_kbd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/usb_kbd.c b/common/usb_kbd.c
index b962849..188763d 100644
--- a/common/usb_kbd.c
+++ b/common/usb_kbd.c
@@ -496,6 +496,7 @@ int drv_usb_kbd_init(void)
 		if (old_dev) {
 			/* Already registered, just return ok. */
 			debug("USB KBD: is already registered.\n");
+			usb_kbd_deregister();
 			return 1;
 		}
 
-- 
1.8.2.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-05-13 18:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-11  2:48 [U-Boot] [PATCH 1/3] usb: properly re-initialize the USB keyboard Simon Glass
2013-05-11  2:48 ` [U-Boot] [PATCH 2/3] usb: workaround non-working keyboards Simon Glass
2013-05-11  2:49 ` [U-Boot] [PATCH 3/3] usb: Correct CLEAR_FEATURE code in ehci-hcd Simon Glass
2013-05-11 16:39   ` Marek Vasut
2013-05-11 17:27     ` Simon Glass
2013-05-11 17:59       ` Marek Vasut
2013-05-13 18:19         ` Julius Werner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox