usb: gadget: configfs: Support arbitrary string descriptors
[linux-2.6-block.git] / Documentation / usb / gadget_configfs.rst
index e4566ffb223f29a8124f84e94feaf1a7cfc865b9..868e118a2644f75080537a5936e3d4e1f45822c5 100644 (file)
@@ -90,6 +90,16 @@ Then the strings can be specified::
        $ echo <manufacturer> > strings/0x409/manufacturer
        $ echo <product> > strings/0x409/product
 
+Further custom string descriptors can be created as directories within the
+language's directory, with the string text being written to the "s" attribute
+within the string's directory:
+
+       $ mkdir strings/0x409/xu.0
+       $ echo <string text> > strings/0x409/xu.0/s
+
+Where function drivers support it, functions may allow symlinks to these custom
+string descriptors to associate those strings with class descriptors.
+
 2. Creating the configurations
 ------------------------------