]> git.sur5r.net Git - u-boot/commit
musb-new: Properly remove a transfer from the schedule on timeout
authorHans de Goede <hdegoede@redhat.com>
Sun, 11 Jan 2015 19:34:52 +0000 (20:34 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 18 Jan 2015 11:31:36 +0000 (12:31 +0100)
commitb918a0c6f694a58b54a7de949d0c720bc6671bd9
tree3027f5a4479bef1fe5f3484906dd68dd864e3a94
parent90cdc1039d0bf6d85bb497dbb93d317ad234e846
musb-new: Properly remove a transfer from the schedule on timeout

If a transfer / urb times-out, properly remove it from the schedule, rather
then letting it sit on the ep head. This stops the musb code from getting
confused and refusing to queue further transfers after a timeout.

Tested by unplugging a usb-keyboard, replugging it and doing a usb-reset,
before this commit the keyboard would not work after the usb-reset.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/usb/musb-new/musb_host.c
drivers/usb/musb-new/musb_host.h
drivers/usb/musb-new/musb_uboot.c
drivers/usb/musb-new/usb-compat.h