usb: gadget: configfs: Create control_config group
PATCH v2 2/4 usb: gadget: configfs: Create control_config group
Quoted 16 lines · Jerry Zhang
Control_configis a group under gadget that acts as a normal config group, except it does not appear incdev->configs.Functions that have exactly zero descriptors can be linked into
control_config. These functions are bound and unbound with the rest of the gadget, but are never enabled. Also, functions with zero descriptors cannot be used in real configs.Create
configfs_setup(), which will first attempt composite setup. If that fails, it will go through functions incontrol_configand usereq_matchto find and deliver the request to a function that can handle it.
Quoted 6 lines
This allows the user to create a functionfs instance dedicated to handling non-standard control requests no matter what functions or configurations are currently active.
Signed-off-by Jerry Zhang <[email protected]>
I didn't get patch 1