Add bulk_timeout() callback to USB controllers that allows to issue bulk transaction with configurable timeout. This allows to peek if there is any incoming data from USB device without needing to wait 5 seconds if there is no data. 'finalize' argument is omitted in bulk_timeout(), because any recent controller doesn't use it in bulk() method anyway. For OHCI and UHCI, which are only controllers using 'finalize', issuing bulk_timeout() with USB_MAX_PROCESSING_TIME_US timeout is the same as issuing bulk() with 'finalize' set to zero. Change-Id: I82dbe307b566e4fc6cca314924168f7ad677efe7 Signed-off-by: Tomasz Michalec <tmichalec@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/90043 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@mailbox.org> |
||
|---|---|---|
| .. | ||
| dwc2.c | ||
| dwc2.h | ||
| dwc2_private.h | ||
| dwc2_rh.c | ||
| ehci.c | ||
| ehci.h | ||
| ehci_private.h | ||
| ehci_rh.c | ||
| generic_hub.c | ||
| generic_hub.h | ||
| Kconfig | ||
| ohci.c | ||
| ohci.h | ||
| ohci_private.h | ||
| ohci_rh.c | ||
| quirks.c | ||
| TODO | ||
| uhci.c | ||
| uhci.h | ||
| uhci_private.h | ||
| uhci_rh.c | ||
| usb.c | ||
| usb_dev.c | ||
| usbhid.c | ||
| usbhub.c | ||
| usbinit.c | ||
| usbmsc.c | ||
| xhci.c | ||
| xhci.h | ||
| xhci_commands.c | ||
| xhci_debug.c | ||
| xhci_devconf.c | ||
| xhci_events.c | ||
| xhci_private.h | ||
| xhci_rh.c | ||