mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
usb: xhci: Set up endpoints for the first 2 interfaces
The xhci driver currently only does the necessary initialization for endpoints found in the first interface descriptor. Apple USB keyboards (released 2021) use the second interface descriptor for the HID keyboard boot protocol. To allow USB drivers to use endpoints from other interface descriptors the xhci driver needs to ensure these endpoints are initialized as well. Use USB_MAX_ACTIVE_INTERFACES to control how many interface descriptors are considered during endpoint initialisation. For now define it to 2 as that is sufficient for supporting the Apple keyboards. Reviewed-by: Marek Vasut <marex@denx.de> Reviewed-by: Neal Gompa <neal@gompa.dev> Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
committed by
Marek Vasut
parent
f1820eb4f4
commit
086e461d9e
@@ -49,6 +49,12 @@ extern bool usb_started; /* flag for the started/stopped USB status */
|
||||
*/
|
||||
#define USB_TIMEOUT_MS(pipe) (usb_pipebulk(pipe) ? 5000 : 1000)
|
||||
|
||||
/*
|
||||
* The xhcd hcd driver prepares only a limited number interfaces / endpoints.
|
||||
* Define this limit so that drivers do not exceed it.
|
||||
*/
|
||||
#define USB_MAX_ACTIVE_INTERFACES 2
|
||||
|
||||
/* device request (setup) */
|
||||
struct devrequest {
|
||||
__u8 requesttype;
|
||||
|
||||
Reference in New Issue
Block a user