]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: Add environment based device ignorelist
authorJanne Grunau <j@jannau.net>
Thu, 4 Apr 2024 06:25:52 +0000 (08:25 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 12 Apr 2024 12:53:13 +0000 (14:53 +0200)
commit18f288b8d48331d6d7391486d7fa355d3bfd2a9c
tree97250fae38b9587ada324c2f052a40b6ea3eddd5
parent0b6775c40283dd645a28b30cafa9d8cc19dc34aa
usb: Add environment based device ignorelist

Add the environment variable "usb_ignorelist" to prevent USB devices
listed in it from being bound to drivers. This allows to ignore devices
which are undesirable or trigger bugs in u-boot's USB stack.
Devices emulating keyboards are one example of undesirable devices as
u-boot currently supports only a single USB keyboard device. Most
commonly, people run into this with Yubikeys, so let's ignore those in
the default environment.

Based on previous USB keyboard specific patches for the same purpose.

Link: https://lore.kernel.org/u-boot/7ab604fb-0fec-4f5e-8708-7a3a7e2cb568@denx.de/
Reviewed-by: Neal Gompa <neal@gompa.dev>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Janne Grunau <j@jannau.net>
common/usb.c
doc/usage/environment.rst
include/env_default.h