Skip to content

Commit e972bc9

Browse files
kelsey-steelechessturo
authored andcommitted
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 <kelseysteele@microsoft.com>
1 parent 50ddd59 commit e972bc9

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

arch/arm64/configs/config-wsl-arm64

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,20 +2861,19 @@ CONFIG_USBIP_VHCI_NR_HCS=1
28612861
#
28622862
# USB port drivers
28632863
#
2864-
CONFIG_USB_SERIAL=y
2865-
# CONFIG_USB_SERIAL_CONSOLE is not set
2864+
CONFIG_USB_SERIAL=m
28662865
# CONFIG_USB_SERIAL_GENERIC is not set
28672866
# CONFIG_USB_SERIAL_SIMPLE is not set
28682867
# CONFIG_USB_SERIAL_AIRCABLE is not set
28692868
# CONFIG_USB_SERIAL_ARK3116 is not set
28702869
# CONFIG_USB_SERIAL_BELKIN is not set
2871-
CONFIG_USB_SERIAL_CH341=y
2870+
CONFIG_USB_SERIAL_CH341=m
28722871
# CONFIG_USB_SERIAL_WHITEHEAT is not set
28732872
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
2874-
CONFIG_USB_SERIAL_CP210X=y
2873+
CONFIG_USB_SERIAL_CP210X=m
28752874
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
28762875
# CONFIG_USB_SERIAL_EMPEG is not set
2877-
CONFIG_USB_SERIAL_FTDI_SIO=y
2876+
CONFIG_USB_SERIAL_FTDI_SIO=m
28782877
# CONFIG_USB_SERIAL_VISOR is not set
28792878
# CONFIG_USB_SERIAL_IPAQ is not set
28802879
# CONFIG_USB_SERIAL_IR is not set

arch/x86/configs/config-wsl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2753,20 +2753,19 @@ CONFIG_USBIP_VHCI_NR_HCS=1
27532753
#
27542754
# USB port drivers
27552755
#
2756-
CONFIG_USB_SERIAL=y
2757-
# CONFIG_USB_SERIAL_CONSOLE is not set
2756+
CONFIG_USB_SERIAL=m
27582757
# CONFIG_USB_SERIAL_GENERIC is not set
27592758
# CONFIG_USB_SERIAL_SIMPLE is not set
27602759
# CONFIG_USB_SERIAL_AIRCABLE is not set
27612760
# CONFIG_USB_SERIAL_ARK3116 is not set
27622761
# CONFIG_USB_SERIAL_BELKIN is not set
2763-
CONFIG_USB_SERIAL_CH341=y
2762+
CONFIG_USB_SERIAL_CH341=m
27642763
# CONFIG_USB_SERIAL_WHITEHEAT is not set
27652764
# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set
2766-
CONFIG_USB_SERIAL_CP210X=y
2765+
CONFIG_USB_SERIAL_CP210X=m
27672766
# CONFIG_USB_SERIAL_CYPRESS_M8 is not set
27682767
# CONFIG_USB_SERIAL_EMPEG is not set
2769-
CONFIG_USB_SERIAL_FTDI_SIO=y
2768+
CONFIG_USB_SERIAL_FTDI_SIO=m
27702769
# CONFIG_USB_SERIAL_VISOR is not set
27712770
# CONFIG_USB_SERIAL_IPAQ is not set
27722771
# CONFIG_USB_SERIAL_IR is not set

0 commit comments

Comments
 (0)