summaryrefslogtreecommitdiffstats
path: root/Documentation/ABI
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2024-01-26 21:32:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-27 17:39:21 -0800
commit43a029724d1c8219cc4e58e9fafbeedd1bc283fa (patch)
treee833ba14810af81519f5804792420f2f8baa4553 /Documentation/ABI
parent2d2a3349521de1757b685b664af849b0824c205d (diff)
downloadlinux-stable-43a029724d1c8219cc4e58e9fafbeedd1bc283fa.tar.gz
linux-stable-43a029724d1c8219cc4e58e9fafbeedd1bc283fa.tar.bz2
linux-stable-43a029724d1c8219cc4e58e9fafbeedd1bc283fa.zip
usb: gadget: f_fs: expose ready state in configfs
When a USB gadget is configured through configfs with 1 or more f_fs functions, then the logic setting up the gadget configuration has to wait until the user space code (typically separate applications) responsible for those functions have written their descriptors before the gadget can be activated. The f_fs instance already knows if this has been done, so expose it through a "ready" attribute in configfs for easier synchronization. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Link: https://lore.kernel.org/r/20240126203208.2482573-1-peter@korsgaard.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r--Documentation/ABI/testing/configfs-usb-gadget-ffs12
1 files changed, 10 insertions, 2 deletions
diff --git a/Documentation/ABI/testing/configfs-usb-gadget-ffs b/Documentation/ABI/testing/configfs-usb-gadget-ffs
index e39b27653c65..bf8936ff6d38 100644
--- a/Documentation/ABI/testing/configfs-usb-gadget-ffs
+++ b/Documentation/ABI/testing/configfs-usb-gadget-ffs
@@ -4,6 +4,14 @@ KernelVersion: 3.13
Description: The purpose of this directory is to create and remove it.
A corresponding USB function instance is created/removed.
- There are no attributes here.
- All parameters are set through FunctionFS.
+ All attributes are read only:
+
+ ============= ============================================
+ ready 1 if the function is ready to be used, E.G.
+ if userspace has written descriptors and
+ strings to ep0, so the gadget can be
+ enabled - 0 otherwise.
+ ============= ============================================
+
+ All other parameters are set through FunctionFS.