]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: usb: Add support for interrupt queues to the dm usb code
authorHans de Goede <hdegoede@redhat.com>
Sun, 10 May 2015 12:10:18 +0000 (14:10 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 15 May 2015 00:49:31 +0000 (18:49 -0600)
commit8a5f0665da6701f06443ae989e9c0962807a1249
tree9807fc7c3ca01db39343ddff7a12e52632efa630
parent029fd8ea1fffe70bf0d2dab4c64cffa20bf3f62e
dm: usb: Add support for interrupt queues to the dm usb code

Interrupt endpoints typically are polled for a long time by the usb
controller before they return anything, so calls to submit_int_msg() can
take a long time to complete this.

To avoid this the u-boot code has the an interrupt queue mechanism / API,
add support for this to the driver-model usb code and implement it for the
dm ehci code.

See the added doc comments for more details.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/usb-uclass.c
include/usb.h