]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: Fix usb_kbd_deregister when console-muxing is used
authorHans de Goede <hdegoede@redhat.com>
Sun, 11 Jan 2015 19:34:44 +0000 (20:34 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 18 Jan 2015 11:31:36 +0000 (12:31 +0100)
commit3cbcb2892809b59d59bf62cb8e49705227ee382a
tree6cbd5b6251de32efa762d33b20115188f1a986c3
parent8bb6c1d1e0ac3692df1b83eaeee42541c09e09fc
usb: Fix usb_kbd_deregister when console-muxing is used

When iomuxing is used we must not only deregister the device with stdio.c,
but also remove the reference to the device in the console_devices array
used by console-muxing. Add a call to iomux_doenv to usb_kbd_deregister to
update console_devices, which will drop the reference.

This fixes the console filling with "Failed to enqueue URB to controller"
messages after a "usb stop force", or when the USB keyboard is gone after a
"usb reset".

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
common/usb_kbd.c