diff options
| author | Janne Grunau <[email protected]> | 2024-04-04 08:25:52 +0200 |
|---|---|---|
| committer | Marek Vasut <[email protected]> | 2024-04-12 14:53:13 +0200 |
| commit | 18f288b8d48331d6d7391486d7fa355d3bfd2a9c (patch) | |
| tree | 97250fae38b9587ada324c2f052a40b6ea3eddd5 /include | |
| parent | 0b6775c40283dd645a28b30cafa9d8cc19dc34aa (diff) | |
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/[email protected]/
Reviewed-by: Neal Gompa <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Signed-off-by: Janne Grunau <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/env_default.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env_default.h b/include/env_default.h index 2ca4a087d3b..8ee500d1709 100644 --- a/include/env_default.h +++ b/include/env_default.h @@ -99,6 +99,17 @@ const char default_environment[] = { #ifdef CONFIG_SYS_SOC "soc=" CONFIG_SYS_SOC "\0" #endif +#ifdef CONFIG_USB_HOST + "usb_ignorelist=" +#ifdef CONFIG_USB_KEYBOARD + /* Ignore Yubico devices. Currently only a single USB keyboard device is + * supported and the emulated HID keyboard Yubikeys present is useless + * as keyboard. + */ + "0x1050:*," +#endif + "\0" +#endif #ifdef CONFIG_ENV_IMPORT_FDT "env_fdt_path=" CONFIG_ENV_FDT_PATH "\0" #endif |
