]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: xhci: Set up endpoints for the first 2 interfaces
authorJanne Grunau <j@jannau.net>
Thu, 4 Apr 2024 06:25:50 +0000 (08:25 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 5 Apr 2024 01:25:14 +0000 (03:25 +0200)
commit086e461d9e2cc0b98a187883774fa4b8be68a0ab
tree0798ad3adb81c24ae44d9958d9445f1617ce1511
parentf1820eb4f44dfbfc16f06fbaff9ce3d9dde268f5
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>
drivers/usb/host/xhci.c
include/usb.h