Re: [PATCH v2] usb: gadget: f_fs: expose ready state in configfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>>>>> "Greg" == Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> writes:

 > On Thu, Jan 18, 2024 at 01:51:37PM +0100, Peter Korsgaard wrote:
 >> 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@xxxxxxxxxxxxx>
 >> ---
 >> Changes since v1:
 >> - Add documentation snippet as requested by Greg.
 >> 
 >> Documentation/usb/gadget-testing.rst |  8 ++++++++

 > Shouldn't this be documented in Documentation/ABI/ instead?

Ahh, we have documentation in too many places. I'll add it to
Documentation/ABI/testing/configfs-gadget-ffs as well and send a v3.

Thanks.

-- 
Bye, Peter Korsgaard




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux