Commit 36499d03 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Neill Kapron
Browse files

FROMGIT: 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: default avatarMichael 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 379236348
(cherry picked from commit e723ebc3 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git/

 usb-next)
Change-Id: Icc85fcf3ad6b9f61caa92fd5f1819f9de9a6780e
Signed-off-by: default avatarSelvarasu Ganesan <selvarasu.g@samsung.com>
parent 1519a13a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment