mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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 <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>
This commit is contained in:
parent
e1208c2fe5
commit
09defbc75b
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue