hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/usb/core/Kconfig
....@@ -32,6 +32,20 @@
3232 If you have any questions about this, say Y here, only say N
3333 if you know exactly what you are doing.
3434
35
+config USB_FEW_INIT_RETRIES
36
+ bool "Limit USB device initialization to only a few retries"
37
+ help
38
+ When a new USB device is detected, the kernel tries very hard
39
+ to initialize and enumerate it, with lots of nested retry loops.
40
+ This almost always works, but when it fails it can take a long time.
41
+ This option tells the kernel to make only a few retry attempts,
42
+ so that the total time required for a failed initialization is
43
+ no more than 30 seconds (as required by the USB OTG spec).
44
+
45
+ Say N here unless you require new-device enumeration failure to
46
+ occur within 30 seconds (as might be needed in an embedded
47
+ application).
48
+
3549 config USB_DYNAMIC_MINORS
3650 bool "Dynamic USB minor allocation"
3751 help
....@@ -45,7 +59,6 @@
4559 config USB_OTG
4660 bool "OTG support"
4761 depends on PM
48
- default n
4962 help
5063 The most notable feature of USB OTG is support for a
5164 "Dual-Role" device, which can act as either a device
....@@ -56,18 +69,18 @@
5669 Select this only if your board has Mini-AB/Micro-AB
5770 connector.
5871
59
-config USB_OTG_WHITELIST
72
+config USB_OTG_PRODUCTLIST
6073 bool "Rely on OTG and EH Targeted Peripherals List"
6174 depends on USB
6275 help
63
- If you say Y here, the "otg_whitelist.h" file will be used as a
64
- product whitelist, so USB peripherals not listed there will be
76
+ If you say Y here, the "otg_productlist.h" file will be used as a
77
+ product list, so USB peripherals not listed there will be
6578 rejected during enumeration. This behavior is required by the
6679 USB OTG and EH specification for all devices not on your product's
6780 "Targeted Peripherals List". "Embedded Hosts" are likewise
6881 allowed to support only a limited number of peripherals.
6982
70
-config USB_OTG_BLACKLIST_HUB
83
+config USB_OTG_DISABLE_EXTERNAL_HUB
7184 bool "Disable external hubs"
7285 depends on USB_OTG || EXPERT
7386 help
....@@ -91,3 +104,15 @@
91104 This driver allows LEDs to be controlled by USB events. Enabling this
92105 trigger allows specifying list of USB ports that should turn on LED
93106 when some USB device gets connected.
107
+
108
+config USB_AUTOSUSPEND_DELAY
109
+ int "Default autosuspend delay"
110
+ depends on USB
111
+ default 2
112
+ help
113
+ The default autosuspend delay in seconds. Can be overridden
114
+ with the usbcore.autosuspend command line or module parameter.
115
+
116
+ The default value Linux has always had is 2 seconds. Change
117
+ this value if you want a different delay and cannot modify
118
+ the command line or module parameter.