]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: kbd: Add probe quirk for Apple and Keychron keyboards
authorJanne Grunau <j@jannau.net>
Thu, 4 Apr 2024 06:25:54 +0000 (08:25 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 12 Apr 2024 12:53:13 +0000 (14:53 +0200)
commit63f6a449bffe46beca89580d3efa48e5d041025c
tree4e936f87853018016ee311dcf9632c6b7ec63fbe
parent575c68279c41b95804bfe531ea1f7407205fcc1e
usb: kbd: Add probe quirk for Apple and Keychron keyboards

Those keyboards do not return the current device state. Polling will
timeout unless there are key presses. This is not a problem during
operation but the initial device state query during probing will fail.
Skip this step in usb_kbd_probe_dev() to make these devices useable.
Not all Apple keyboards behave like this. A keyboard with USB
vendor/product ID 05ac:0221 is reported to work with the current code.
Unfortunately some Keychron keyboards "re-use" Apple's vendor ID and
show the same behavior (Keychron C2, 05ac:024f for example).

Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Janne Grunau <j@jannau.net>
common/usb_kbd.c