diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-05 11:51:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-10-05 11:52:39 +0300 |
commit | dddc00f255415b826190cfbaa5d6dbc87cd9ded1 (patch) | |
tree | bb495c82a812d397c95deeadb0087136dc1b0268 /drivers/usb/gadget/function | |
parent | e0fa80bbede825f470869f41b132daff99f33a1c (diff) | |
download | linux-dddc00f255415b826190cfbaa5d6dbc87cd9ded1.tar.xz |
Revert "usb: gadget: uvc: cleanup request when not in correct state"
This reverts commit 52a39f2cf62bb5430ad1f54cd522dbfdab1d71ba.
Based on review comments, it was applied too soon and needs more work.
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20231005081716.GA13853@pendragon.ideasonboard.com
Cc: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function')
-rw-r--r-- | drivers/usb/gadget/function/uvc_video.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/usb/gadget/function/uvc_video.c b/drivers/usb/gadget/function/uvc_video.c index c48c904f500f..4b68a3a9815d 100644 --- a/drivers/usb/gadget/function/uvc_video.c +++ b/drivers/usb/gadget/function/uvc_video.c @@ -256,12 +256,6 @@ uvc_video_complete(struct usb_ep *ep, struct usb_request *req) struct uvc_device *uvc = video->uvc; unsigned long flags; - if (uvc->state == UVC_STATE_CONNECTED) { - usb_ep_free_request(video->ep, ureq->req); - ureq->req = NULL; - return; - } - switch (req->status) { case 0: break; |