From: Vincent Palatin Date: Sat, 11 May 2013 02:48:58 +0000 (-0700) Subject: usb: properly re-initialize the USB keyboard. X-Git-Tag: v2025.01-rc5-pxa1908~16184^2~12 X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24style.Permalink%20%7D%7D?a=commitdiff_plain;h=09defbc75b46991b794f35957e986acbfe0c7946;p=u-boot.git usb: properly re-initialize the USB keyboard. 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 Signed-off-by: Simon Glass Reviewed-by: Stefan Reinauer Tested-by: Vincent Palatin --- diff --git a/common/usb_kbd.c b/common/usb_kbd.c index b962849920..188763d605 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; }