xref: /linux/drivers/usb/core/Kconfig (revision cae8dc3b685fb24f61f09b7197c6a383a66cff2c)
1*cae8dc3bSGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# USB Core configuration
41da177e4SLinus Torvalds#
5f2a383e4SGreg Kroah-Hartmanconfig USB_ANNOUNCE_NEW_DEVICES
6f2a383e4SGreg Kroah-Hartman	bool "USB announce new devices"
7f2a383e4SGreg Kroah-Hartman	help
8f2a383e4SGreg Kroah-Hartman	  Say Y here if you want the USB core to always announce the
9f2a383e4SGreg Kroah-Hartman	  idVendor, idProduct, Manufacturer, Product, and SerialNumber
10f2a383e4SGreg Kroah-Hartman	  strings for every new USB device to the syslog.  This option is
11f2a383e4SGreg Kroah-Hartman	  usually used by distro vendors to help with debugging and to
12f2a383e4SGreg Kroah-Hartman	  let users know what specific device was added to the machine
13f2a383e4SGreg Kroah-Hartman	  in what location.
14f2a383e4SGreg Kroah-Hartman
15f2a383e4SGreg Kroah-Hartman	  If you do not want this kind of information sent to the system
16f2a383e4SGreg Kroah-Hartman	  log, or have any doubts about this, say N here.
17f2a383e4SGreg Kroah-Hartman
181da177e4SLinus Torvaldscomment "Miscellaneous USB options"
191da177e4SLinus Torvalds
204f482038SJulius Wernerconfig USB_DEFAULT_PERSIST
214f482038SJulius Werner	bool "Enable USB persist by default"
224f482038SJulius Werner	default y
234f482038SJulius Werner	help
248c88126bSMasanari Iida	  Say N here if you don't want USB power session persistence
254f482038SJulius Werner	  enabled by default.  If you say N it will make suspended USB
264f482038SJulius Werner	  devices that lose power get reenumerated as if they had been
274f482038SJulius Werner	  unplugged, causing any mounted filesystems to be lost.  The
284f482038SJulius Werner	  persist feature can still be enabled for individual devices
294f482038SJulius Werner	  through the power/persist sysfs node. See
30e1c3e6e1SMauro Carvalho Chehab	  Documentation/driver-api/usb/persist.rst for more info.
314f482038SJulius Werner
324f482038SJulius Werner	  If you have any questions about this, say Y here, only say N
334f482038SJulius Werner	  if you know exactly what you are doing.
344f482038SJulius Werner
351da177e4SLinus Torvaldsconfig USB_DYNAMIC_MINORS
36b6719996SRobert P. J. Day	bool "Dynamic USB minor allocation"
371da177e4SLinus Torvalds	help
381da177e4SLinus Torvalds	  If you say Y here, the USB subsystem will use dynamic minor
391da177e4SLinus Torvalds	  allocation for any device that uses the USB major number.
401da177e4SLinus Torvalds	  This means that you can have more than 16 of a single type
411da177e4SLinus Torvalds	  of device (like USB printers).
421da177e4SLinus Torvalds
431da177e4SLinus Torvalds	  If you are unsure about this, say N here.
441da177e4SLinus Torvalds
451da177e4SLinus Torvaldsconfig USB_OTG
46f4ce9084SPavankumar Kondeti	bool "OTG support"
471b3e3aa6SRafael J. Wysocki	depends on PM
481da177e4SLinus Torvalds	default n
49f4ce9084SPavankumar Kondeti	help
50f4ce9084SPavankumar Kondeti	  The most notable feature of USB OTG is support for a
51f4ce9084SPavankumar Kondeti	  "Dual-Role" device, which can act as either a device
52f4ce9084SPavankumar Kondeti	  or a host. The initial role is decided by the type of
53f4ce9084SPavankumar Kondeti	  plug inserted and can be changed later when two dual
54f4ce9084SPavankumar Kondeti	  role devices talk to each other.
551da177e4SLinus Torvalds
56f4ce9084SPavankumar Kondeti	  Select this only if your board has Mini-AB/Micro-AB
57f4ce9084SPavankumar Kondeti	  connector.
581da177e4SLinus Torvalds
591da177e4SLinus Torvaldsconfig USB_OTG_WHITELIST
609bd0181cSPeter Chen	bool "Rely on OTG and EH Targeted Peripherals List"
619bd0181cSPeter Chen	depends on USB
621da177e4SLinus Torvalds	help
631da177e4SLinus Torvalds	  If you say Y here, the "otg_whitelist.h" file will be used as a
641da177e4SLinus Torvalds	  product whitelist, so USB peripherals not listed there will be
651da177e4SLinus Torvalds	  rejected during enumeration.  This behavior is required by the
669bd0181cSPeter Chen	  USB OTG and EH specification for all devices not on your product's
6722552b28SRobin Getz	  "Targeted Peripherals List".  "Embedded Hosts" are likewise
6822552b28SRobin Getz	  allowed to support only a limited number of peripherals.
691da177e4SLinus Torvalds
7089ccbdc9SDavid Brownellconfig USB_OTG_BLACKLIST_HUB
7189ccbdc9SDavid Brownell	bool "Disable external hubs"
726a108a14SDavid Rientjes	depends on USB_OTG || EXPERT
7389ccbdc9SDavid Brownell	help
7489ccbdc9SDavid Brownell	  If you say Y here, then Linux will refuse to enumerate
7589ccbdc9SDavid Brownell	  external hubs.  OTG hosts are allowed to reduce hardware
7622552b28SRobin Getz	  and software costs by not supporting external hubs.  So
77bc45df95SPeter Korsgaard	  are "Embedded Hosts" that don't offer OTG support.
781da177e4SLinus Torvalds
791dfa91aaSPeter Chenconfig USB_OTG_FSM
801dfa91aaSPeter Chen	tristate "USB 2.0 OTG FSM implementation"
81c4f16130SPeter Chen	depends on USB && USB_OTG
821dfa91aaSPeter Chen	select USB_PHY
831dfa91aaSPeter Chen	help
841dfa91aaSPeter Chen	  Implements OTG Finite State Machine as specified in On-The-Go
851dfa91aaSPeter Chen	  and Embedded Host Supplement to the USB Revision 2.0 Specification.
860f247626SRafał Miłecki
870f247626SRafał Miłeckiconfig USB_LEDS_TRIGGER_USBPORT
880f247626SRafał Miłecki	tristate "USB port LED trigger"
890f247626SRafał Miłecki	depends on USB && LEDS_TRIGGERS
900f247626SRafał Miłecki	help
910f247626SRafał Miłecki	  This driver allows LEDs to be controlled by USB events. Enabling this
920f247626SRafał Miłecki	  trigger allows specifying list of USB ports that should turn on LED
930f247626SRafał Miłecki	  when some USB device gets connected.
94