[U-Boot] [PATCH 1/3] usb: properly re-initialize the USB keyboard.

Simon Glass sjg at chromium.org
Sat May 11 04:48:58 CEST 2013


From: Vincent Palatin <vpalatin at 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 at chromium.org>
Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Stefan Reinauer <reinauer at chromium.org>
Tested-by: Vincent Palatin <vpalatin at 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



More information about the U-Boot mailing list