coreboot-kgpe-d16/payloads/libpayload/drivers/usb
Nico Huber e79595def5 libpayload: Use interrupt transfers for USB hubs
In interactive payloads, the USB stack's poll procedure is implicitly
called from the UI loop. Since all USB control transfers are handled
synchronously, polling hubs with these slows the UI significantly down.

So switch to interrupt transfers that are done asynchronously and only
perform control transfers when the hub reported a status change.

We use the interrupt endpoint's max packet size instead of the theo-
retical transfer length of `(bNrPorts + 1) / 8` as Linux' code mentions
hubs that return too much data.

Change-Id: I5af02d63e4b8e1451b160b77f3611b93658a7a48
Signed-off-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/18499
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
2019-09-18 12:58:50 +00:00
..
Kconfig
TODO
dwc2.c libpayload/usb: fix DWC2 driver 2019-07-09 13:05:53 +00:00
dwc2.h
dwc2_private.h
dwc2_rh.c
ehci.c
ehci.h
ehci_private.h
ehci_rh.c
generic_hub.c
generic_hub.h
ohci.c
ohci.h
ohci_private.h
ohci_rh.c
quirks.c
uhci.c
uhci.h
uhci_private.h
uhci_rh.c
usb.c libpayload/usb: add USB 3.1 GEN2 support 2019-08-27 07:21:00 +00:00
usb_dev.c
usbhid.c
usbhub.c libpayload: Use interrupt transfers for USB hubs 2019-09-18 12:58:50 +00:00
usbinit.c
usbmsc.c libpayload: usbmsc: Factor out usb_msc_force_init() function 2019-08-22 10:37:26 +00:00
xhci.c
xhci.h
xhci_commands.c
xhci_debug.c
xhci_devconf.c libpayload/usb: add USB 3.1 GEN2 support 2019-08-27 07:21:00 +00:00
xhci_events.c
xhci_private.h
xhci_rh.c