summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMichael Grzeschik <m.grzeschik@pengutronix.de>2024-10-16 16:58:14 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-10-17 09:42:23 +0300
commite723ebc3a9aa172ab8042382afcae310c953104d (patch)
tree0d707a639b9b89d1f86f63078947e26561e11947 /include/linux
parent757f5d0b61dea4d16eaf2c3fa860bd458a4d3ec6 (diff)
downloadlinux-e723ebc3a9aa172ab8042382afcae310c953104d.tar.xz
usb: gadget: uvc: dont call usb_composite_setup_continue when not streaming
If the streamoff call was triggered by some previous disconnect or userspace application shutdown the uvc_function_setup_continue should not be called and the state should not be overwritten. For this situation the set_alt(0) was never called and the streaming ep has no USB_GADGET_DELAYED_STATUS pending. Since the state then was already updated before we also omit the state update. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Link: https://lore.kernel.org/r/20240403-uvc_request_length_by_interval-v7-9-e224bb1035f0@pengutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions