~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/ABI/testing/sysfs-bus-usb

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/ABI/testing/sysfs-bus-usb (Version linux-6.12-rc7) and /Documentation/ABI/testing/sysfs-bus-usb (Version linux-6.3.13)


  1 What:           /sys/bus/usb/devices/<INTERFAC      1 What:           /sys/bus/usb/devices/<INTERFACE>/authorized
  2 Date:           August 2015                         2 Date:           August 2015
  3 Description:                                        3 Description:
  4                 This allows to authorize (1) o      4                 This allows to authorize (1) or deauthorize (0)
  5                 individual interfaces instead       5                 individual interfaces instead a whole device
  6                 in contrast to the device auth      6                 in contrast to the device authorization.
  7                 If a deauthorized interface wi      7                 If a deauthorized interface will be authorized
  8                 so the driver probing must be       8                 so the driver probing must be triggered manually
  9                 by writing INTERFACE to /sys/b      9                 by writing INTERFACE to /sys/bus/usb/drivers_probe
 10                 This allows to avoid side-effe     10                 This allows to avoid side-effects with drivers
 11                 that need multiple interfaces.     11                 that need multiple interfaces.
 12                                                    12 
 13                 A deauthorized interface canno     13                 A deauthorized interface cannot be probed or claimed.
 14                                                    14 
 15 What:           /sys/bus/usb/devices/usbX/inte     15 What:           /sys/bus/usb/devices/usbX/interface_authorized_default
 16 Date:           August 2015                        16 Date:           August 2015
 17 Description:                                       17 Description:
 18                 This is used as value that det     18                 This is used as value that determines if interfaces
 19                 would be authorized by default     19                 would be authorized by default.
 20                 The value can be 1 or 0. It's      20                 The value can be 1 or 0. It's by default 1.
 21                                                    21 
 22 What:           /sys/bus/usb/device/.../author     22 What:           /sys/bus/usb/device/.../authorized
 23 Date:           July 2008                          23 Date:           July 2008
 24 KernelVersion:  2.6.26                             24 KernelVersion:  2.6.26
 25 Contact:        David Vrabel <david.vrabel@csr.     25 Contact:        David Vrabel <david.vrabel@csr.com>
 26 Description:                                       26 Description:
 27                 Authorized devices are availab     27                 Authorized devices are available for use by device
 28                 drivers, non-authorized one ar     28                 drivers, non-authorized one are not.  By default, wired
 29                 USB devices are authorized.        29                 USB devices are authorized.
 30                                                    30 
                                                   >>  31                 Certified Wireless USB devices are not authorized
                                                   >>  32                 initially and should be (by writing 1) after the
                                                   >>  33                 device has been authenticated.
                                                   >>  34 
                                                   >>  35 What:           /sys/bus/usb/device/.../wusb_cdid
                                                   >>  36 Date:           July 2008
                                                   >>  37 KernelVersion:  2.6.27
                                                   >>  38 Contact:        David Vrabel <david.vrabel@csr.com>
                                                   >>  39 Description:
                                                   >>  40                 For Certified Wireless USB devices only.
                                                   >>  41 
                                                   >>  42                 A devices's CDID, as 16 space-separated hex octets.
                                                   >>  43 
                                                   >>  44 What:           /sys/bus/usb/device/.../wusb_ck
                                                   >>  45 Date:           July 2008
                                                   >>  46 KernelVersion:  2.6.27
                                                   >>  47 Contact:        David Vrabel <david.vrabel@csr.com>
                                                   >>  48 Description:
                                                   >>  49                 For Certified Wireless USB devices only.
                                                   >>  50 
                                                   >>  51                 Write the device's connection key (CK) to start the
                                                   >>  52                 authentication of the device.  The CK is 16
                                                   >>  53                 space-separated hex octets.
                                                   >>  54 
                                                   >>  55 What:           /sys/bus/usb/device/.../wusb_disconnect
                                                   >>  56 Date:           July 2008
                                                   >>  57 KernelVersion:  2.6.27
                                                   >>  58 Contact:        David Vrabel <david.vrabel@csr.com>
                                                   >>  59 Description:
                                                   >>  60                 For Certified Wireless USB devices only.
                                                   >>  61 
                                                   >>  62                 Write a 1 to force the device to disconnect
                                                   >>  63                 (equivalent to unplugging a wired USB device).
                                                   >>  64 
 31 What:           /sys/bus/usb/drivers/.../new_i     65 What:           /sys/bus/usb/drivers/.../new_id
 32 Date:           October 2011                       66 Date:           October 2011
 33 Contact:        linux-usb@vger.kernel.org          67 Contact:        linux-usb@vger.kernel.org
 34 Description:                                       68 Description:
 35                 Writing a device ID to this fi     69                 Writing a device ID to this file will attempt to
 36                 dynamically add a new device I     70                 dynamically add a new device ID to a USB device driver.
 37                 This may allow the driver to s     71                 This may allow the driver to support more hardware than
 38                 was included in the driver's s     72                 was included in the driver's static device ID support
 39                 table at compile time. The for     73                 table at compile time. The format for the device ID is:
 40                 idVendor idProduct bInterfaceC     74                 idVendor idProduct bInterfaceClass RefIdVendor RefIdProduct
 41                 The vendor ID and device ID fi     75                 The vendor ID and device ID fields are required, the
 42                 rest is optional. The `Ref*` t     76                 rest is optional. The `Ref*` tuple can be used to tell the
 43                 driver to use the same driver_     77                 driver to use the same driver_data for the new device as
 44                 it is used for the reference d     78                 it is used for the reference device.
 45                 Upon successfully adding an ID     79                 Upon successfully adding an ID, the driver will probe
 46                 for the device and attempt to      80                 for the device and attempt to bind to it.  For example::
 47                                                    81 
 48                   # echo "8086 10f5" > /sys/bu     82                   # echo "8086 10f5" > /sys/bus/usb/drivers/foo/new_id
 49                                                    83 
 50                 Here add a new device (0458:70     84                 Here add a new device (0458:7045) using driver_data from
 51                 an already supported device (0     85                 an already supported device (0458:704c)::
 52                                                    86 
 53                   # echo "0458 7045 0 0458 704     87                   # echo "0458 7045 0 0458 704c" > /sys/bus/usb/drivers/foo/new_id
 54                                                    88 
 55                 Reading from this file will li     89                 Reading from this file will list all dynamically added
 56                 device IDs in the same format,     90                 device IDs in the same format, with one entry per
 57                 line. For example::                91                 line. For example::
 58                                                    92 
 59                   # cat /sys/bus/usb/drivers/f     93                   # cat /sys/bus/usb/drivers/foo/new_id
 60                   8086 10f5                        94                   8086 10f5
 61                   dead beef 06                     95                   dead beef 06
 62                   f00d cafe                        96                   f00d cafe
 63                                                    97 
 64                 The list will be truncated at      98                 The list will be truncated at PAGE_SIZE bytes due to
 65                 sysfs restrictions.                99                 sysfs restrictions.
 66                                                   100 
 67 What:           /sys/bus/usb-serial/drivers/..    101 What:           /sys/bus/usb-serial/drivers/.../new_id
 68 Date:           October 2011                      102 Date:           October 2011
 69 Contact:        linux-usb@vger.kernel.org         103 Contact:        linux-usb@vger.kernel.org
 70 Description:                                      104 Description:
 71                 For serial USB drivers, this a    105                 For serial USB drivers, this attribute appears under the
 72                 extra bus folder "usb-serial"     106                 extra bus folder "usb-serial" in sysfs; apart from that
 73                 difference, all descriptions f    107                 difference, all descriptions from the entry
 74                 "/sys/bus/usb/drivers/.../new_    108                 "/sys/bus/usb/drivers/.../new_id" apply.
 75                                                   109 
 76 What:           /sys/bus/usb/drivers/.../remov    110 What:           /sys/bus/usb/drivers/.../remove_id
 77 Date:           November 2009                     111 Date:           November 2009
 78 Contact:        CHENG Renquan <rqcheng@smu.edu.    112 Contact:        CHENG Renquan <rqcheng@smu.edu.sg>
 79 Description:                                      113 Description:
 80                 Writing a device ID to this fi    114                 Writing a device ID to this file will remove an ID
 81                 that was dynamically added via    115                 that was dynamically added via the new_id sysfs entry.
 82                 The format for the device ID i    116                 The format for the device ID is:
 83                 idVendor idProduct.     After     117                 idVendor idProduct.     After successfully
 84                 removing an ID, the driver wil    118                 removing an ID, the driver will no longer support the
 85                 device.  This is useful to ens    119                 device.  This is useful to ensure auto probing won't
 86                 match the driver to the device    120                 match the driver to the device.  For example:
 87                 # echo "046d c315" > /sys/bus/    121                 # echo "046d c315" > /sys/bus/usb/drivers/foo/remove_id
 88                                                   122 
 89                 Reading from this file will li    123                 Reading from this file will list the dynamically added
 90                 device IDs, exactly like readi    124                 device IDs, exactly like reading from the entry
 91                 "/sys/bus/usb/drivers/.../new_    125                 "/sys/bus/usb/drivers/.../new_id"
 92                                                   126 
 93 What:           /sys/bus/usb/devices/.../power    127 What:           /sys/bus/usb/devices/.../power/usb2_hardware_lpm
 94 Date:           September 2011                    128 Date:           September 2011
 95 Contact:        Andiry Xu <andiry.xu@amd.com>      129 Contact:        Andiry Xu <andiry.xu@amd.com>
 96 Description:                                      130 Description:
 97                 If CONFIG_PM is set and a USB     131                 If CONFIG_PM is set and a USB 2.0 lpm-capable device is plugged
 98                 in to a xHCI host which suppor    132                 in to a xHCI host which support link PM, it will perform a LPM
 99                 test; if the test is passed an    133                 test; if the test is passed and host supports USB2 hardware LPM
100                 (xHCI 1.0 feature), USB2 hardw    134                 (xHCI 1.0 feature), USB2 hardware LPM will be enabled for the
101                 device and the USB device dire    135                 device and the USB device directory will contain a file named
102                 power/usb2_hardware_lpm.  The     136                 power/usb2_hardware_lpm.  The file holds a string value (enable
103                 or disable) indicating whether    137                 or disable) indicating whether or not USB2 hardware LPM is
104                 enabled for the device. Develo    138                 enabled for the device. Developer can write y/Y/1 or n/N/0 to
105                 the file to enable/disable the    139                 the file to enable/disable the feature.
106                                                   140 
107 What:           /sys/bus/usb/devices/.../power    141 What:           /sys/bus/usb/devices/.../power/usb3_hardware_lpm_u1
108                 /sys/bus/usb/devices/.../power    142                 /sys/bus/usb/devices/.../power/usb3_hardware_lpm_u2
109 Date:           November 2015                     143 Date:           November 2015
110 Contact:        Kevin Strasser <kevin.strasser@    144 Contact:        Kevin Strasser <kevin.strasser@linux.intel.com>
111                 Lu Baolu <baolu.lu@linux.intel.    145                 Lu Baolu <baolu.lu@linux.intel.com>
112 Description:                                      146 Description:
113                 If CONFIG_PM is set and a USB     147                 If CONFIG_PM is set and a USB 3.0 lpm-capable device is plugged
114                 in to a xHCI host which suppor    148                 in to a xHCI host which supports link PM, it will check if U1
115                 and U2 exit latencies have bee    149                 and U2 exit latencies have been set in the BOS descriptor; if
116                 the check is passed and the ho    150                 the check is passed and the host supports USB3 hardware LPM,
117                 USB3 hardware LPM will be enab    151                 USB3 hardware LPM will be enabled for the device and the USB
118                 device directory will contain     152                 device directory will contain two files named
119                 power/usb3_hardware_lpm_u1 and    153                 power/usb3_hardware_lpm_u1 and power/usb3_hardware_lpm_u2. These
120                 files hold a string value (ena    154                 files hold a string value (enable or disable) indicating whether
121                 or not USB3 hardware LPM U1 or    155                 or not USB3 hardware LPM U1 or U2 is enabled for the device.
122                                                   156 
123 What:           /sys/bus/usb/devices/.../ltm_c    157 What:           /sys/bus/usb/devices/.../ltm_capable
124 Date:           July 2012                         158 Date:           July 2012
125 Contact:        Sarah Sharp <sarah.a.sharp@linu    159 Contact:        Sarah Sharp <sarah.a.sharp@linux.intel.com>
126 Description:                                      160 Description:
127                 USB 3.0 devices may optionally    161                 USB 3.0 devices may optionally support Latency Tolerance
128                 Messaging (LTM).  They indicat    162                 Messaging (LTM).  They indicate their support by setting a bit
129                 in the bmAttributes field of t    163                 in the bmAttributes field of their SuperSpeed BOS descriptors.
130                 If that bit is set for the dev    164                 If that bit is set for the device, ltm_capable will read "yes".
131                 If the device doesn't support     165                 If the device doesn't support LTM, the file will read "no".
132                 The file will be present for a    166                 The file will be present for all speeds of USB devices, and will
133                 always read "no" for USB 1.1 a    167                 always read "no" for USB 1.1 and USB 2.0 devices.
134                                                   168 
135 What:           /sys/bus/usb/devices/<INTERFAC << 
136 Date:           February 2023                  << 
137 Contact:        Bastien Nocera <hadess@hadess.n << 
138 Description:                                   << 
139                 Some USB devices use a USB rec << 
140                 wirelessly with their device u << 
141                 attribute allows user-space to << 
142                 connected to its receiver dong << 
143                 the device to be absent when c << 
144                 device's battery, show a heads << 
145                 an on-screen keyboard if the o << 
146                 turned off.                    << 
147                 This attribute is not to be us << 
148                 statuses available in WWAN, WL << 
149                 If the device does not use a r << 
150                 device, then this attribute wi << 
151                                                << 
152 What:           /sys/bus/usb/devices/.../<hub_    169 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>
153 Date:           August 2012                       170 Date:           August 2012
154 Contact:        Lan Tianyu <tianyu.lan@intel.co    171 Contact:        Lan Tianyu <tianyu.lan@intel.com>
155 Description:                                      172 Description:
156                 The /sys/bus/usb/devices/.../<    173                 The /sys/bus/usb/devices/.../<hub_interface>/port<X>
157                 is usb port device's sysfs dir    174                 is usb port device's sysfs directory.
158                                                   175 
159 What:           /sys/bus/usb/devices/.../<hub_    176 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/connect_type
160 Date:           January 2013                      177 Date:           January 2013
161 Contact:        Lan Tianyu <tianyu.lan@intel.co    178 Contact:        Lan Tianyu <tianyu.lan@intel.com>
162 Description:                                      179 Description:
163                 Some platforms provide usb por    180                 Some platforms provide usb port connect types through ACPI.
164                 This attribute is to expose th    181                 This attribute is to expose these information to user space.
165                 The file will read "hotplug",     182                 The file will read "hotplug", "hardwired" and "not used" if the
166                 information is available, and     183                 information is available, and "unknown" otherwise.
167                                                   184 
168 What:           /sys/bus/usb/devices/.../<hub_    185 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/location
169 Date:           October 2018                      186 Date:           October 2018
170 Contact:        Bjørn Mork <bjorn@mork.no>        187 Contact:        Bjørn Mork <bjorn@mork.no>
171 Description:                                      188 Description:
172                 Some platforms provide usb por    189                 Some platforms provide usb port physical location through
173                 firmware. This is used by the     190                 firmware. This is used by the kernel to pair up logical ports
174                 mapping to the same physical c    191                 mapping to the same physical connector. The attribute exposes the
175                 raw location value as a hex in    192                 raw location value as a hex integer.
176                                                   193 
177                                                   194 
178 What:           /sys/bus/usb/devices/.../<hub_    195 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/quirks
179 Date:           May 2018                          196 Date:           May 2018
180 Contact:        Nicolas Boichat <drinkcat@chrom    197 Contact:        Nicolas Boichat <drinkcat@chromium.org>
181 Description:                                      198 Description:
182                 In some cases, we care about t    199                 In some cases, we care about time-to-active for devices
183                 connected on a specific port (    200                 connected on a specific port (e.g. non-standard USB port like
184                 pogo pins), where the device t    201                 pogo pins), where the device to be connected is known in
185                 advance, and behaves well acco    202                 advance, and behaves well according to the specification.
186                 This attribute is a bit-field     203                 This attribute is a bit-field that controls the behavior of
187                 a specific port:                  204                 a specific port:
188                                                   205 
189                  - Bit 0 of this field selects    206                  - Bit 0 of this field selects the "old" enumeration scheme,
190                    as it is considerably faste    207                    as it is considerably faster (it only causes one USB reset
191                    instead of 2).                 208                    instead of 2).
192                                                   209 
193                    The old enumeration scheme     210                    The old enumeration scheme can also be selected globally
194                    using /sys/module/usbcore/p    211                    using /sys/module/usbcore/parameters/old_scheme_first, but
195                    it is often not desirable a    212                    it is often not desirable as the new scheme was introduced to
196                    increase compatibility with    213                    increase compatibility with more devices.
197                  - Bit 1 reduces TRSTRCY to th    214                  - Bit 1 reduces TRSTRCY to the 10 ms that are required by the
198                    USB 2.0 specification, inst    215                    USB 2.0 specification, instead of the 50 ms that are normally
199                    used to help make enumerati    216                    used to help make enumeration work better on some high speed
200                    devices.                       217                    devices.
201                                                   218 
202 What:           /sys/bus/usb/devices/.../<hub_    219 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/over_current_count
203 Date:           February 2018                     220 Date:           February 2018
204 Contact:        Richard Leitner <richard.leitne    221 Contact:        Richard Leitner <richard.leitner@skidata.com>
205 Description:                                      222 Description:
206                 Most hubs are able to detect o    223                 Most hubs are able to detect over-current situations on their
207                 ports and report them to the k    224                 ports and report them to the kernel. This attribute is to expose
208                 the number of over-current sit    225                 the number of over-current situation occurred on a specific port
209                 to user space. This file will     226                 to user space. This file will contain an unsigned 32 bit value
210                 which wraps to 0 after its max    227                 which wraps to 0 after its maximum is reached. This file supports
211                 poll() for monitoring changes     228                 poll() for monitoring changes to this value in user space.
212                                                   229 
213                 Any time this value changes th    230                 Any time this value changes the corresponding hub device will send a
214                 udev event with the following     231                 udev event with the following attributes::
215                                                   232 
216                   OVER_CURRENT_PORT=/sys/bus/u    233                   OVER_CURRENT_PORT=/sys/bus/usb/devices/.../<hub_interface>/port<X>
217                   OVER_CURRENT_COUNT=[current     234                   OVER_CURRENT_COUNT=[current value of this sysfs attribute]
218                                                   235 
219 What:           /sys/bus/usb/devices/.../<hub_    236 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/usb3_lpm_permit
220 Date:           November 2015                     237 Date:           November 2015
221 Contact:        Lu Baolu <baolu.lu@linux.intel.    238 Contact:        Lu Baolu <baolu.lu@linux.intel.com>
222 Description:                                      239 Description:
223                 Some USB3.0 devices are not fr    240                 Some USB3.0 devices are not friendly to USB3 LPM.  usb3_lpm_permit
224                 attribute allows enabling/disa    241                 attribute allows enabling/disabling usb3 lpm of a port. It takes
225                 effect both before and after a    242                 effect both before and after a usb device is enumerated. Supported
226                 values are "0" if both u1 and     243                 values are "0" if both u1 and u2 are NOT permitted, "u1" if only u1
227                 is permitted, "u2" if only u2     244                 is permitted, "u2" if only u2 is permitted, "u1_u2" if both u1 and
228                 u2 are permitted.                 245                 u2 are permitted.
229                                                   246 
230 What:           /sys/bus/usb/devices/.../<hub_    247 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/connector
231 Date:           December 2021                     248 Date:           December 2021
232 Contact:        Heikki Krogerus <heikki.krogeru    249 Contact:        Heikki Krogerus <heikki.krogerus@linux.intel.com>
233 Description:                                      250 Description:
234                 Link to the USB Type-C connect    251                 Link to the USB Type-C connector when available. This link is
235                 only created when USB Type-C C    252                 only created when USB Type-C Connector Class is enabled, and
236                 only if the system firmware is    253                 only if the system firmware is capable of describing the
237                 connection between a port and     254                 connection between a port and its connector.
238                                                   255 
239 What:           /sys/bus/usb/devices/.../<hub_    256 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/disable
240 Date:           June 2022                         257 Date:           June 2022
241 Contact:        Michael Grzeschik <m.grzeschik@    258 Contact:        Michael Grzeschik <m.grzeschik@pengutronix.de>
242 Description:                                      259 Description:
243                 This file controls the state o    260                 This file controls the state of a USB port, including
244                 Vbus power output (but only on    261                 Vbus power output (but only on hubs that support
245                 power switching -- most hubs d    262                 power switching -- most hubs don't support it). If
246                 a port is disabled, the port i    263                 a port is disabled, the port is unusable: Devices
247                 attached to the port will not     264                 attached to the port will not be detected, initialized,
248                 or enumerated.                    265                 or enumerated.
249                                                   266 
250 What:           /sys/bus/usb/devices/.../<hub_    267 What:           /sys/bus/usb/devices/.../<hub_interface>/port<X>/early_stop
251 Date:           Sep 2022                          268 Date:           Sep 2022
252 Contact:        Ray Chi <raychi@google.com>        269 Contact:        Ray Chi <raychi@google.com>
253 Description:                                      270 Description:
254                 Some USB hosts have some watch    271                 Some USB hosts have some watchdog mechanisms so that the device
255                 may enter ramdump if it takes     272                 may enter ramdump if it takes a long time during port initialization.
256                 This attribute allows each por    273                 This attribute allows each port just has two attempts so that the
257                 port initialization will be fa    274                 port initialization will be failed quickly. In addition, if a port
258                 which is marked with early_sto    275                 which is marked with early_stop has failed to initialize, it will ignore
259                 all future connections until t    276                 all future connections until this attribute is clear.
260                                                   277 
261 What:           /sys/bus/usb/devices/.../<hub_ << 
262 Date:           June 2023                      << 
263 Contact:        Roy Luo <royluo@google.com>     << 
264 Description:                                   << 
265                 Indicates current state of the << 
266                 Valid states are: 'not-attache << 
267                 'reconnecting', 'unauthenticat << 
268                 'configured', and 'suspended'. << 
269                 monitor the state change from  << 
270                                                << 
271 What:           /sys/bus/usb/devices/.../power    278 What:           /sys/bus/usb/devices/.../power/usb2_lpm_l1_timeout
272 Date:           May 2013                          279 Date:           May 2013
273 Contact:        Mathias Nyman <mathias.nyman@li    280 Contact:        Mathias Nyman <mathias.nyman@linux.intel.com>
274 Description:                                      281 Description:
275                 USB 2.0 devices may support ha    282                 USB 2.0 devices may support hardware link power management (LPM)
276                 L1 sleep state. The usb2_lpm_l    283                 L1 sleep state. The usb2_lpm_l1_timeout attribute allows
277                 tuning the timeout for L1 inac    284                 tuning the timeout for L1 inactivity timer (LPM timer), e.g.
278                 needed inactivity time before     285                 needed inactivity time before host requests the device to go to L1 sleep.
279                 Useful for power management tu    286                 Useful for power management tuning.
280                 Supported values are 0 - 65535    287                 Supported values are 0 - 65535 microseconds.
281                                                   288 
282 What:           /sys/bus/usb/devices/.../power    289 What:           /sys/bus/usb/devices/.../power/usb2_lpm_besl
283 Date:           May 2013                          290 Date:           May 2013
284 Contact:        Mathias Nyman <mathias.nyman@li    291 Contact:        Mathias Nyman <mathias.nyman@linux.intel.com>
285 Description:                                      292 Description:
286                 USB 2.0 devices that support h    293                 USB 2.0 devices that support hardware link power management (LPM)
287                 L1 sleep state now use a best     294                 L1 sleep state now use a best effort service latency value (BESL) to
288                 indicate the best effort to re    295                 indicate the best effort to resumption of service to the device after the
289                 initiation of the resume event    296                 initiation of the resume event.
290                 If the device does not have a     297                 If the device does not have a preferred besl value then the host can select
291                 one instead. This usb2_lpm_bes    298                 one instead. This usb2_lpm_besl attribute allows to tune the host selected besl
292                 value in order to tune power s    299                 value in order to tune power saving and service latency.
293                                                   300 
294                 Supported values are 0 - 15.      301                 Supported values are 0 - 15.
295                 More information on how besl v    302                 More information on how besl values map to microseconds can be found in
296                 USB 2.0 ECN Errata for Link Po    303                 USB 2.0 ECN Errata for Link Power Management, section 4.10)
297                                                   304 
298 What:           /sys/bus/usb/devices/.../rx_la    305 What:           /sys/bus/usb/devices/.../rx_lanes
299 Date:           March 2018                        306 Date:           March 2018
300 Contact:        Mathias Nyman <mathias.nyman@li    307 Contact:        Mathias Nyman <mathias.nyman@linux.intel.com>
301 Description:                                      308 Description:
302                 Number of rx lanes the device     309                 Number of rx lanes the device is using.
303                 USB 3.2 adds Dual-lane support    310                 USB 3.2 adds Dual-lane support, 2 rx and 2 tx lanes over Type-C.
304                 Inter-Chip SSIC devices suppor    311                 Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
305                 direction. Devices before USB     312                 direction. Devices before USB 3.2 are single lane (rx_lanes = 1)
306                                                   313 
307 What:           /sys/bus/usb/devices/.../tx_la    314 What:           /sys/bus/usb/devices/.../tx_lanes
308 Date:           March 2018                        315 Date:           March 2018
309 Contact:        Mathias Nyman <mathias.nyman@li    316 Contact:        Mathias Nyman <mathias.nyman@linux.intel.com>
310 Description:                                      317 Description:
311                 Number of tx lanes the device     318                 Number of tx lanes the device is using.
312                 USB 3.2 adds Dual-lane support    319                 USB 3.2 adds Dual-lane support, 2 rx and 2 tx -lanes over Type-C.
313                 Inter-Chip SSIC devices suppor    320                 Inter-Chip SSIC devices support asymmetric lanes up to 4 lanes per
314                 direction. Devices before USB     321                 direction. Devices before USB 3.2 are single lane (tx_lanes = 1)
315                                                   322 
316 What:           /sys/bus/usb/devices/.../typec << 
317 Date:           November 2023                  << 
318 Contact:        Heikki Krogerus <heikki.krogeru << 
319 Description:                                   << 
320                 Symlink to the USB Type-C part << 
321                 represents the component that  << 
322                 Configuration Channel (CC sign << 
323                 cables) with the local port.   << 
324                                                << 
325 What:           /sys/bus/usb/devices/usbX/bAlt    323 What:           /sys/bus/usb/devices/usbX/bAlternateSetting
326 Description:                                      324 Description:
327                 The current interface alternat    325                 The current interface alternate setting number, in decimal.
328                                                   326 
329                 See USB specs for its meaning.    327                 See USB specs for its meaning.
330                                                   328 
331 What:           /sys/bus/usb/devices/usbX/bcdD    329 What:           /sys/bus/usb/devices/usbX/bcdDevice
332 Description:                                      330 Description:
333                 The device's release number, i    331                 The device's release number, in hexadecimal.
334                                                   332 
335                 See USB specs for its meaning.    333                 See USB specs for its meaning.
336                                                   334 
337 What:           /sys/bus/usb/devices/usbX/bCon    335 What:           /sys/bus/usb/devices/usbX/bConfigurationValue
338 Description:                                      336 Description:
339                 While a USB device typically h    337                 While a USB device typically have just one configuration
340                 setting, some devices support     338                 setting, some devices support multiple configurations.
341                                                   339 
342                 This value shows the current c    340                 This value shows the current configuration, in decimal.
343                                                   341 
344                 Changing its value will change    342                 Changing its value will change the device's configuration
345                 to another setting.               343                 to another setting.
346                                                   344 
347                 The number of configurations s    345                 The number of configurations supported by a device is at:
348                                                   346 
349                         /sys/bus/usb/devices/u    347                         /sys/bus/usb/devices/usbX/bNumConfigurations
350                                                   348 
351                 See USB specs for its meaning.    349                 See USB specs for its meaning.
352                                                   350 
353 What:           /sys/bus/usb/devices/usbX/bDev    351 What:           /sys/bus/usb/devices/usbX/bDeviceClass
354 Description:                                      352 Description:
355                 Class code of the device, in h    353                 Class code of the device, in hexadecimal.
356                                                   354 
357                 See USB specs for its meaning.    355                 See USB specs for its meaning.
358                                                   356 
359 What:           /sys/bus/usb/devices/usbX/bDev    357 What:           /sys/bus/usb/devices/usbX/bDeviceProtocol
360 Description:                                      358 Description:
361                 Protocol code of the device, i    359                 Protocol code of the device, in hexadecimal.
362                                                   360 
363                 See USB specs for its meaning.    361                 See USB specs for its meaning.
364                                                   362 
365 What:           /sys/bus/usb/devices/usbX/bDev    363 What:           /sys/bus/usb/devices/usbX/bDeviceSubClass
366 Description:                                      364 Description:
367                 Subclass code of the device, i    365                 Subclass code of the device, in hexadecimal.
368                                                   366 
369                 See USB specs for its meaning.    367                 See USB specs for its meaning.
370                                                   368 
371 What:           /sys/bus/usb/devices/usbX/bInt    369 What:           /sys/bus/usb/devices/usbX/bInterfaceClass
372 Description:                                      370 Description:
373                 Class code of the interface, i    371                 Class code of the interface, in hexadecimal.
374                                                   372 
375                 See USB specs for its meaning.    373                 See USB specs for its meaning.
376                                                   374 
377 What:           /sys/bus/usb/devices/usbX/bInt    375 What:           /sys/bus/usb/devices/usbX/bInterfaceNumber
378 Description:                                      376 Description:
379                 Interface number, in hexadecim    377                 Interface number, in hexadecimal.
380                                                   378 
381                 See USB specs for its meaning.    379                 See USB specs for its meaning.
382                                                   380 
383 What:           /sys/bus/usb/devices/usbX/bInt    381 What:           /sys/bus/usb/devices/usbX/bInterfaceProtocol
384 Description:                                      382 Description:
385                 Protocol code of the interface    383                 Protocol code of the interface, in hexadecimal.
386                                                   384 
387                 See USB specs for its meaning.    385                 See USB specs for its meaning.
388                                                   386 
389 What:           /sys/bus/usb/devices/usbX/bInt    387 What:           /sys/bus/usb/devices/usbX/bInterfaceSubClass
390 Description:                                      388 Description:
391                 Subclass code of the interface    389                 Subclass code of the interface, in hexadecimal.
392                                                   390 
393                 See USB specs for its meaning.    391                 See USB specs for its meaning.
394                                                   392 
395 What:           /sys/bus/usb/devices/usbX/bmAt    393 What:           /sys/bus/usb/devices/usbX/bmAttributes
396 Description:                                      394 Description:
397                 Attributes of the current conf    395                 Attributes of the current configuration, in hexadecimal.
398                                                   396 
399                 See USB specs for its meaning.    397                 See USB specs for its meaning.
400                                                   398 
401 What:           /sys/bus/usb/devices/usbX/bMax    399 What:           /sys/bus/usb/devices/usbX/bMaxPacketSize0
402 Description:                                      400 Description:
403                 Maximum endpoint 0 packet size    401                 Maximum endpoint 0 packet size, in decimal.
404                                                   402 
405                 See USB specs for its meaning.    403                 See USB specs for its meaning.
406                                                   404 
407 What:           /sys/bus/usb/devices/usbX/bMax    405 What:           /sys/bus/usb/devices/usbX/bMaxPower
408 Description:                                      406 Description:
409                 Maximum power consumption of t    407                 Maximum power consumption of the active configuration of
410                 the device, in miliamperes.       408                 the device, in miliamperes.
411                                                   409 
412 What:           /sys/bus/usb/devices/usbX/bNum    410 What:           /sys/bus/usb/devices/usbX/bNumConfigurations
413 Description:                                      411 Description:
414                 Number of the possible configu    412                 Number of the possible configurations of the device, in
415                 decimal. The current configura    413                 decimal. The current configuration is controlled via:
416                                                   414 
417                         /sys/bus/usb/devices/u    415                         /sys/bus/usb/devices/usbX/bConfigurationValue
418                                                   416 
419                 See USB specs for its meaning.    417                 See USB specs for its meaning.
420                                                   418 
421 What:           /sys/bus/usb/devices/usbX/bNum    419 What:           /sys/bus/usb/devices/usbX/bNumEndpoints
422 Description:                                      420 Description:
423                 Number of endpoints used on th    421                 Number of endpoints used on this interface, in hexadecimal.
424                                                   422 
425                 See USB specs for its meaning.    423                 See USB specs for its meaning.
426                                                   424 
427 What:           /sys/bus/usb/devices/usbX/bNum    425 What:           /sys/bus/usb/devices/usbX/bNumInterfaces
428 Description:                                      426 Description:
429                 Number of interfaces on this d    427                 Number of interfaces on this device, in decimal.
430                                                   428 
431 What:           /sys/bus/usb/devices/usbX/busn    429 What:           /sys/bus/usb/devices/usbX/busnum
432 Description:                                      430 Description:
433                 Number of the bus.                431                 Number of the bus.
434                                                   432 
435 What:           /sys/bus/usb/devices/usbX/conf    433 What:           /sys/bus/usb/devices/usbX/configuration
436 Description:                                      434 Description:
437                 Contents of the string descrip    435                 Contents of the string descriptor associated with the
438                 current configuration. It may     436                 current configuration. It may include the firmware version
439                 of a device and/or its serial     437                 of a device and/or its serial number.
440                                                   438 
441 What:           /sys/bus/usb/devices/usbX/desc    439 What:           /sys/bus/usb/devices/usbX/descriptors
442 Description:                                      440 Description:
443                 Contains the interface descrip    441                 Contains the interface descriptors, in binary.
444                                                << 
445 What:           /sys/bus/usb/devices/usbX/bos_ << 
446 Date:           March 2024                     << 
447 Contact:        Elbert Mai <code@elbertmai.com> << 
448 Description:                                   << 
449                 Binary file containing the cac << 
450                 of the device. This consists o << 
451                 set of device capability descr << 
452                 this file are in bus-endian fo << 
453                 request the BOS from a device  << 
454                                                   442 
455 What:           /sys/bus/usb/devices/usbX/idPr    443 What:           /sys/bus/usb/devices/usbX/idProduct
456 Description:                                      444 Description:
457                 Product ID, in hexadecimal.       445                 Product ID, in hexadecimal.
458                                                   446 
459 What:           /sys/bus/usb/devices/usbX/idVe    447 What:           /sys/bus/usb/devices/usbX/idVendor
460 Description:                                      448 Description:
461                 Vendor ID, in hexadecimal.        449                 Vendor ID, in hexadecimal.
462                                                   450 
463 What:           /sys/bus/usb/devices/usbX/devs    451 What:           /sys/bus/usb/devices/usbX/devspec
464 Description:                                      452 Description:
465                 Displays the Device Tree Open     453                 Displays the Device Tree Open Firmware node of the interface.
466                                                   454 
467 What:           /sys/bus/usb/devices/usbX/avoi    455 What:           /sys/bus/usb/devices/usbX/avoid_reset_quirk
468 Description:                                      456 Description:
469                 Most devices have this set to     457                 Most devices have this set to zero.
470                                                   458 
471                 If the value is 1, enable a US    459                 If the value is 1, enable a USB quirk that prevents this
472                 device to use reset.              460                 device to use reset.
473                                                   461 
474                 (read/write)                      462                 (read/write)
475                                                   463 
476 What:           /sys/bus/usb/devices/usbX/devn    464 What:           /sys/bus/usb/devices/usbX/devnum
477 Description:                                      465 Description:
478                 USB interface device number, i    466                 USB interface device number, in decimal.
479                                                   467 
480 What:           /sys/bus/usb/devices/usbX/devp    468 What:           /sys/bus/usb/devices/usbX/devpath
481 Description:                                      469 Description:
482                 String containing the USB inte    470                 String containing the USB interface device path.
483                                                   471 
484 What:           /sys/bus/usb/devices/usbX/manu    472 What:           /sys/bus/usb/devices/usbX/manufacturer
485 Description:                                      473 Description:
486                 Vendor specific string contain    474                 Vendor specific string containing the name of the
487                 manufacturer of the device.       475                 manufacturer of the device.
488                                                   476 
489 What:           /sys/bus/usb/devices/usbX/maxc    477 What:           /sys/bus/usb/devices/usbX/maxchild
490 Description:                                      478 Description:
491                 Number of ports of an USB hub     479                 Number of ports of an USB hub
492                                                   480 
493 What:           /sys/bus/usb/devices/usbX/pers    481 What:           /sys/bus/usb/devices/usbX/persist
494 Description:                                      482 Description:
495                 Keeps the device even if it ge    483                 Keeps the device even if it gets disconnected.
496                                                   484 
497 What:           /sys/bus/usb/devices/usbX/prod    485 What:           /sys/bus/usb/devices/usbX/product
498 Description:                                      486 Description:
499                 Vendor specific string contain    487                 Vendor specific string containing the name of the
500                 device's product.                 488                 device's product.
501                                                   489 
502 What:           /sys/bus/usb/devices/usbX/spee    490 What:           /sys/bus/usb/devices/usbX/speed
503 Description:                                      491 Description:
504                 Shows the device's max speed,     492                 Shows the device's max speed, according to the USB version,
505                 in Mbps.                          493                 in Mbps.
506                 Can be:                           494                 Can be:
507                                                   495 
508                         =======         ======    496                         =======         ====================
509                         Unknown         speed     497                         Unknown         speed unknown
510                         1.5             Low sp    498                         1.5             Low speed
511                         15              Full s    499                         15              Full speed
512                         480             High S    500                         480             High Speed
513                         5000            Super     501                         5000            Super Speed
514                         10000           Super     502                         10000           Super Speed+
515                         20000           Super     503                         20000           Super Speed+ Gen 2x2
516                         =======         ======    504                         =======         ====================
517                                                   505 
518 What:           /sys/bus/usb/devices/usbX/supp    506 What:           /sys/bus/usb/devices/usbX/supports_autosuspend
519 Description:                                      507 Description:
520                 Returns 1 if the device doesn'    508                 Returns 1 if the device doesn't support autosuspend.
521                 Otherwise, returns 0.             509                 Otherwise, returns 0.
522                                                   510 
523 What:           /sys/bus/usb/devices/usbX/urbn    511 What:           /sys/bus/usb/devices/usbX/urbnum
524 Description:                                      512 Description:
525                 Number of URBs submitted for t    513                 Number of URBs submitted for the whole device.
526                                                   514 
527 What:           /sys/bus/usb/devices/usbX/vers    515 What:           /sys/bus/usb/devices/usbX/version
528 Description:                                      516 Description:
529                 String containing the USB devi    517                 String containing the USB device version, as encoded
530                 at the BCD descriptor.            518                 at the BCD descriptor.
531                                                   519 
532 What:           /sys/bus/usb/devices/usbX/powe    520 What:           /sys/bus/usb/devices/usbX/power/autosuspend
533 Description:                                      521 Description:
534                 Time in milliseconds for the d    522                 Time in milliseconds for the device to autosuspend. If the
535                 value is negative, then autosu    523                 value is negative, then autosuspend is prevented.
536                                                   524 
537                 (read/write)                      525                 (read/write)
538                                                   526 
539 What:           /sys/bus/usb/devices/usbX/powe    527 What:           /sys/bus/usb/devices/usbX/power/active_duration
540 Description:                                      528 Description:
541                 The total time the device has     529                 The total time the device has not been suspended.
542                                                   530 
543 What:           /sys/bus/usb/devices/usbX/powe    531 What:           /sys/bus/usb/devices/usbX/power/connected_duration
544 Description:                                      532 Description:
545                 The total time (in msec) that     533                 The total time (in msec) that the device has been connected.
546                                                   534 
547 What:           /sys/bus/usb/devices/usbX/powe    535 What:           /sys/bus/usb/devices/usbX/power/level
548 Description:                                      536 Description:
549                                                   537 
550 What:           /sys/bus/usb/devices/usbX/ep_<    538 What:           /sys/bus/usb/devices/usbX/ep_<N>/bEndpointAddress
551 Description:                                      539 Description:
552                 The address of the endpoint de    540                 The address of the endpoint described by this descriptor,
553                 in hexadecimal. The endpoint d    541                 in hexadecimal. The endpoint direction on this bitmapped field
554                 is also shown at:                 542                 is also shown at:
555                                                   543 
556                         /sys/bus/usb/devices/u    544                         /sys/bus/usb/devices/usbX/ep_<N>/direction
557                                                   545 
558                 See USB specs for its meaning.    546                 See USB specs for its meaning.
559                                                   547 
560 What:           /sys/bus/usb/devices/usbX/ep_<    548 What:           /sys/bus/usb/devices/usbX/ep_<N>/bInterval
561 Description:                                      549 Description:
562                 The interval of the endpoint a    550                 The interval of the endpoint as described on its descriptor,
563                 in hexadecimal. The actual int    551                 in hexadecimal. The actual interval depends on the version
564                 of the USB. Also shown in time    552                 of the USB. Also shown in time units at
565                 /sys/bus/usb/devices/usbX/ep_<    553                 /sys/bus/usb/devices/usbX/ep_<N>/interval.
566                                                   554 
567 What:           /sys/bus/usb/devices/usbX/ep_<    555 What:           /sys/bus/usb/devices/usbX/ep_<N>/bLength
568 Description:                                      556 Description:
569                 Number of bytes of the endpoin    557                 Number of bytes of the endpoint descriptor, in hexadecimal.
570                                                   558 
571 What:           /sys/bus/usb/devices/usbX/ep_<    559 What:           /sys/bus/usb/devices/usbX/ep_<N>/bmAttributes
572 Description:                                      560 Description:
573                 Attributes which apply to the     561                 Attributes which apply to the endpoint as described on its
574                 descriptor, in hexadecimal. Th    562                 descriptor, in hexadecimal. The endpoint type on this
575                 bitmapped field is also shown     563                 bitmapped field is also shown at:
576                                                   564 
577                         /sys/bus/usb/devices/u    565                         /sys/bus/usb/devices/usbX/ep_<N>/type
578                                                   566 
579                 See USB specs for its meaning.    567                 See USB specs for its meaning.
580                                                   568 
581 What:           /sys/bus/usb/devices/usbX/ep_<    569 What:           /sys/bus/usb/devices/usbX/ep_<N>/direction
582 Description:                                      570 Description:
583                 Direction of the endpoint. Can    571                 Direction of the endpoint. Can be:
584                                                   572 
585                     - both (on control endpoin    573                     - both (on control endpoints)
586                     - in                          574                     - in
587                     - out                         575                     - out
588                                                   576 
589 What:           /sys/bus/usb/devices/usbX/ep_<    577 What:           /sys/bus/usb/devices/usbX/ep_<N>/interval
590 Description:                                      578 Description:
591                 Interval for polling endpoint     579                 Interval for polling endpoint for data transfers, in
592                 milisseconds or microseconds.     580                 milisseconds or microseconds.
593                                                   581 
594 What:           /sys/bus/usb/devices/usbX/ep_<    582 What:           /sys/bus/usb/devices/usbX/ep_<N>/type
595 Description:                                      583 Description:
596                 Descriptor type. Can be:          584                 Descriptor type. Can be:
597                                                   585 
598                     - Control                     586                     - Control
599                     - Isoc                        587                     - Isoc
600                     - Bulk                        588                     - Bulk
601                     - Interrupt                   589                     - Interrupt
602                     - unknown                     590                     - unknown
603                                                   591 
604 What:           /sys/bus/usb/devices/usbX/ep_<    592 What:           /sys/bus/usb/devices/usbX/ep_<N>/wMaxPacketSize
605 Description:                                      593 Description:
606                 Maximum packet size this endpo    594                 Maximum packet size this endpoint is capable of
607                 sending or receiving, in hexad    595                 sending or receiving, in hexadecimal.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php