mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
43a029724d
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>
18 lines
594 B
Plaintext
18 lines
594 B
Plaintext
What: /config/usb-gadget/gadget/functions/ffs.name
|
|
Date: Nov 2013
|
|
KernelVersion: 3.13
|
|
Description: The purpose of this directory is to create and remove it.
|
|
|
|
A corresponding USB function instance is created/removed.
|
|
|
|
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.
|