]> git.hungrycats.org Git - linux/commit
usb: dwc3: ep0: Don't clear ep0 DWC3_EP_TRANSFER_STARTED
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Thu, 14 Nov 2024 01:02:06 +0000 (01:02 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:24 +0000 (13:54 +0100)
commitad551e4735fafee123dee83319244648540e1b0d
tree1c5b985af4e375bb6824a89adc6ffb58b93693c3
parent817180ec0797ebe2699cd4c7e6d008ba7ab69211
usb: dwc3: ep0: Don't clear ep0 DWC3_EP_TRANSFER_STARTED

commit 5d2fb074dea289c41f5aaf2c3f68286bee370634 upstream.

The driver cannot issue the End Transfer command to the SETUP transfer.
Don't clear DWC3_EP_TRANSFER_STARTED flag to make sure that the driver
won't send Start Transfer command again, which can cause no-resource
error. For example this can occur if the host issues a reset to the
device.

Cc: stable@vger.kernel.org
Fixes: 76cb323f80ac ("usb: dwc3: ep0: clear all EP0 flags")
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/d3d618185fd614bb7426352a9fc1199641d3b5f5.1731545781.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/ep0.c