diff options
author | Felipe Balbi <balbi@ti.com> | 2014-09-29 14:20:35 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-10-20 20:58:48 (GMT) |
commit | c92bae753722a0010f1cabfb242581e130378b9f (patch) | |
tree | d75ed6695fc8ba493fca5918809671973ce46b18 /arch/xtensa | |
parent | d7577b389233a74609841492feaf6a55967aa5c8 (diff) | |
download | linux-c92bae753722a0010f1cabfb242581e130378b9f.tar.xz |
usb: gadget: function: uvc: make sure to balance ep enable/disable
If a set_alt() to the same alternate setting that's
already selected is received, functions are required
to reset the interface state, this means we must disable
all endpoints and reenable them again.
This is also documented on our kdoc for struct usb_function
* @set_alt: (REQUIRED) Reconfigures altsettings; function drivers may
* initialize usb_ep.driver data at this time (when it is used).
* Note that setting an interface to its current altsetting resets
* interface state, and that all interfaces have a disabled state.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions