summaryrefslogtreecommitdiff
path: root/drivers/usb/musb-new/usb-compat.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-01-11 20:34:52 +0100
committerMarek Vasut <marex@denx.de>2015-01-18 12:31:36 +0100
commitb918a0c6f694a58b54a7de949d0c720bc6671bd9 (patch)
tree3027f5a4479bef1fe5f3484906dd68dd864e3a94 /drivers/usb/musb-new/usb-compat.h
parent90cdc1039d0bf6d85bb497dbb93d317ad234e846 (diff)
downloadu-boot-imx-b918a0c6f694a58b54a7de949d0c720bc6671bd9.zip
u-boot-imx-b918a0c6f694a58b54a7de949d0c720bc6671bd9.tar.gz
u-boot-imx-b918a0c6f694a58b54a7de949d0c720bc6671bd9.tar.bz2
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>
Diffstat (limited to 'drivers/usb/musb-new/usb-compat.h')
-rw-r--r--drivers/usb/musb-new/usb-compat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/musb-new/usb-compat.h b/drivers/usb/musb-new/usb-compat.h
index 27f656f..50bad37 100644
--- a/drivers/usb/musb-new/usb-compat.h
+++ b/drivers/usb/musb-new/usb-compat.h
@@ -48,6 +48,7 @@ struct urb {
list_add_tail(&urb->urb_list, &urb->ep->urb_list); \
ret; })
#define usb_hcd_unlink_urb_from_ep(hcd, urb) list_del_init(&urb->urb_list)
+#define usb_hcd_check_unlink_urb(hdc, urb, status) 0
static inline void usb_hcd_giveback_urb(struct usb_hcd *hcd,
struct urb *urb,