]> git.ipfire.org Git - thirdparty/linux.git/commit
xhci: dbc: allow setting manufacturer string through sysfs
authorŁukasz Bartosik <ukaszb@chromium.org>
Tue, 20 Jan 2026 18:11:48 +0000 (20:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 16:16:24 +0000 (17:16 +0100)
commitdb7fd1955e6825756d0241343add1d172098bb18
tree90344efe962e84f47b5a1084847234e4b234d3c8
parent33d15312e35d4cfd26b68ab4c1b0143cc43d8b16
xhci: dbc: allow setting manufacturer string through sysfs

Add dbc_manufacturer sysfs attribute to allow changing the manufacturer
description presented by the debug device when a host requests a string
descriptor with iManufacturer index.

Value can only be changed while debug capability (DbC) is in disabled
state to prevent USB device descriptor change while connected to a USB
host.

The default value is "Linux Foundation".
The string length can be from 1 to 126 characters.
String is terminated at null or newline, driver does not support empty
string.

[ mn: Improve commit message and sysfs entry documentation ]

Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260120181148.128712-5-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-pci-drivers-xhci_hcd
drivers/usb/host/xhci-dbgcap.c