From cfcee404569995ffa0391825edfeb0b7f6fbc4e8 Mon Sep 17 00:00:00 2001 From: Kelsey Steele Date: Tue, 19 Dec 2023 17:44:42 -0800 Subject: [PATCH] configs: change USB_SERIAL to module Setting USB_SERIAL to be a module instead of being built in allows USB drivers to only be loaded when a device is connected or requested. Setting USB_SERIAL to be a module sets other enabled USB_SERIAL_* to be modules as well. link: https://microsoft.visualstudio.com/OS/_workitems/edit/48439326 Signed-off-by: Kelsey Steele --- arch/arm64/configs/config-wsl-arm64 | 9 ++++----- arch/x86/configs/config-wsl | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/arch/arm64/configs/config-wsl-arm64 b/arch/arm64/configs/config-wsl-arm64 index 6decfa625dd87..eacfe01ba0d85 100755 --- a/arch/arm64/configs/config-wsl-arm64 +++ b/arch/arm64/configs/config-wsl-arm64 @@ -2931,20 +2931,19 @@ CONFIG_USBIP_VHCI_NR_HCS=1 # # USB port drivers # -CONFIG_USB_SERIAL=y -# CONFIG_USB_SERIAL_CONSOLE is not set +CONFIG_USB_SERIAL=m # CONFIG_USB_SERIAL_GENERIC is not set # CONFIG_USB_SERIAL_SIMPLE is not set # CONFIG_USB_SERIAL_AIRCABLE is not set # CONFIG_USB_SERIAL_ARK3116 is not set # CONFIG_USB_SERIAL_BELKIN is not set -CONFIG_USB_SERIAL_CH341=y +CONFIG_USB_SERIAL_CH341=m # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set -CONFIG_USB_SERIAL_CP210X=y +CONFIG_USB_SERIAL_CP210X=m # CONFIG_USB_SERIAL_CYPRESS_M8 is not set # CONFIG_USB_SERIAL_EMPEG is not set -CONFIG_USB_SERIAL_FTDI_SIO=y +CONFIG_USB_SERIAL_FTDI_SIO=m # CONFIG_USB_SERIAL_VISOR is not set # CONFIG_USB_SERIAL_IPAQ is not set # CONFIG_USB_SERIAL_IR is not set diff --git a/arch/x86/configs/config-wsl b/arch/x86/configs/config-wsl index 26170c0c2f003..9933e0706f2c5 100644 --- a/arch/x86/configs/config-wsl +++ b/arch/x86/configs/config-wsl @@ -2844,20 +2844,19 @@ CONFIG_USBIP_VHCI_NR_HCS=1 # # USB port drivers # -CONFIG_USB_SERIAL=y -# CONFIG_USB_SERIAL_CONSOLE is not set +CONFIG_USB_SERIAL=m # CONFIG_USB_SERIAL_GENERIC is not set # CONFIG_USB_SERIAL_SIMPLE is not set # CONFIG_USB_SERIAL_AIRCABLE is not set # CONFIG_USB_SERIAL_ARK3116 is not set # CONFIG_USB_SERIAL_BELKIN is not set -CONFIG_USB_SERIAL_CH341=y +CONFIG_USB_SERIAL_CH341=m # CONFIG_USB_SERIAL_WHITEHEAT is not set # CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set -CONFIG_USB_SERIAL_CP210X=y +CONFIG_USB_SERIAL_CP210X=m # CONFIG_USB_SERIAL_CYPRESS_M8 is not set # CONFIG_USB_SERIAL_EMPEG is not set -CONFIG_USB_SERIAL_FTDI_SIO=y +CONFIG_USB_SERIAL_FTDI_SIO=m # CONFIG_USB_SERIAL_VISOR is not set # CONFIG_USB_SERIAL_IPAQ is not set # CONFIG_USB_SERIAL_IR is not set