Re: [RFC PATCH 4/4] usb: core: Add Kconfig option to compile usb authorization
From: Greg Kroah-Hartman
Date: Sat Jun 21 2025 - 03:22:53 EST
On Fri, Jun 20, 2025 at 04:27:19PM +0200, nicolas.bouchinet@xxxxxxxxxxxxxxxxx wrote:
> From: Nicolas Bouchinet <nicolas.bouchinet@xxxxxxxxxxx>
>
> This enables the usb authentication protocol implementation.
>
> Co-developed-by: Luc Bonnafoux <luc.bonnafoux@xxxxxxxxxxx>
> Signed-off-by: Luc Bonnafoux <luc.bonnafoux@xxxxxxxxxxx>
> Signed-off-by: Nicolas Bouchinet <nicolas.bouchinet@xxxxxxxxxxx>
> ---
> drivers/usb/core/Kconfig | 8 ++++++++
> drivers/usb/core/Makefile | 4 ++++
> 2 files changed, 12 insertions(+)
>
> diff --git a/drivers/usb/core/Kconfig b/drivers/usb/core/Kconfig
> index 58e3ca7e479392112f656384c664efc36bb1151a..07ba67137b7fe16ecb1e993a51dbbfd4dd3ada88 100644
> --- a/drivers/usb/core/Kconfig
> +++ b/drivers/usb/core/Kconfig
> @@ -143,3 +143,11 @@ config USB_DEFAULT_AUTHORIZATION_MODE
> ACPI selecting value 2 is analogous to selecting value 0.
>
> If unsure, keep the default value.
> +
> +config USB_AUTHENTICATION
> + bool "Enable USB authentication function"
> + default n
Nit, "default n" is the default, no need to ever list it.
thanks,
greg k-h