1cae8dc3bSGreg 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 48f4ce9084SPavankumar Kondeti help 49f4ce9084SPavankumar Kondeti The most notable feature of USB OTG is support for a 50f4ce9084SPavankumar Kondeti "Dual-Role" device, which can act as either a device 51f4ce9084SPavankumar Kondeti or a host. The initial role is decided by the type of 52f4ce9084SPavankumar Kondeti plug inserted and can be changed later when two dual 53f4ce9084SPavankumar Kondeti role devices talk to each other. 541da177e4SLinus Torvalds 55f4ce9084SPavankumar Kondeti Select this only if your board has Mini-AB/Micro-AB 56f4ce9084SPavankumar Kondeti connector. 571da177e4SLinus Torvalds 581da177e4SLinus Torvaldsconfig USB_OTG_WHITELIST 599bd0181cSPeter Chen bool "Rely on OTG and EH Targeted Peripherals List" 609bd0181cSPeter Chen depends on USB 611da177e4SLinus Torvalds help 621da177e4SLinus Torvalds If you say Y here, the "otg_whitelist.h" file will be used as a 631da177e4SLinus Torvalds product whitelist, so USB peripherals not listed there will be 641da177e4SLinus Torvalds rejected during enumeration. This behavior is required by the 659bd0181cSPeter Chen USB OTG and EH specification for all devices not on your product's 6622552b28SRobin Getz "Targeted Peripherals List". "Embedded Hosts" are likewise 6722552b28SRobin Getz allowed to support only a limited number of peripherals. 681da177e4SLinus Torvalds 69*9af54301SGreg Kroah-Hartmanconfig USB_OTG_DISABLE_EXTERNAL_HUB 7089ccbdc9SDavid Brownell bool "Disable external hubs" 716a108a14SDavid Rientjes depends on USB_OTG || EXPERT 7289ccbdc9SDavid Brownell help 7389ccbdc9SDavid Brownell If you say Y here, then Linux will refuse to enumerate 7489ccbdc9SDavid Brownell external hubs. OTG hosts are allowed to reduce hardware 7522552b28SRobin Getz and software costs by not supporting external hubs. So 76bc45df95SPeter Korsgaard are "Embedded Hosts" that don't offer OTG support. 771da177e4SLinus Torvalds 781dfa91aaSPeter Chenconfig USB_OTG_FSM 791dfa91aaSPeter Chen tristate "USB 2.0 OTG FSM implementation" 80c4f16130SPeter Chen depends on USB && USB_OTG 811dfa91aaSPeter Chen select USB_PHY 821dfa91aaSPeter Chen help 831dfa91aaSPeter Chen Implements OTG Finite State Machine as specified in On-The-Go 841dfa91aaSPeter Chen and Embedded Host Supplement to the USB Revision 2.0 Specification. 850f247626SRafał Miłecki 860f247626SRafał Miłeckiconfig USB_LEDS_TRIGGER_USBPORT 870f247626SRafał Miłecki tristate "USB port LED trigger" 880f247626SRafał Miłecki depends on USB && LEDS_TRIGGERS 890f247626SRafał Miłecki help 900f247626SRafał Miłecki This driver allows LEDs to be controlled by USB events. Enabling this 910f247626SRafał Miłecki trigger allows specifying list of USB ports that should turn on LED 920f247626SRafał Miłecki when some USB device gets connected. 935d5d44deSMans Rullgard 945d5d44deSMans Rullgardconfig USB_AUTOSUSPEND_DELAY 955d5d44deSMans Rullgard int "Default autosuspend delay" 965d5d44deSMans Rullgard depends on USB 975d5d44deSMans Rullgard default 2 985d5d44deSMans Rullgard help 995d5d44deSMans Rullgard The default autosuspend delay in seconds. Can be overridden 1005d5d44deSMans Rullgard with the usbcore.autosuspend command line or module parameter. 1015d5d44deSMans Rullgard 1025d5d44deSMans Rullgard The default value Linux has always had is 2 seconds. Change 1035d5d44deSMans Rullgard this value if you want a different delay and cannot modify 1045d5d44deSMans Rullgard the command line or module parameter. 105