Skip to content
Snippets Groups Projects
Commit 09defbc7 authored by Vincent Palatin's avatar Vincent Palatin Committed by Marek Vasut
Browse files

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: default avatarVincent Palatin <vpalatin@chromium.org>
Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarStefan Reinauer <reinauer@chromium.org>
Tested-by: default avatarVincent Palatin <vpalatin@chromium.org>
parent e1208c2f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment