]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
usb: dwc3: ep0: Don't reset resource alloc flag
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Tue, 16 Apr 2024 01:23:07 +0000 (01:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Apr 2024 14:42:21 +0000 (16:42 +0200)
commitf2e0eee4703869dc5edb5302a919861566ca7797
treeae761728b67962c51ebc1cd83e4d3f2822ed26fe
parent1607830dadeefc407e4956336d9fcd9e9defd810
usb: dwc3: ep0: Don't reset resource alloc flag

The DWC3_EP_RESOURCE_ALLOCATED flag ensures that the resource of an
endpoint is only assigned once. Unless the endpoint is reset, don't
clear this flag. Otherwise we may set endpoint resource again, which
prevents the driver from initiate transfer after handling a STALL or
endpoint halt to the control endpoint.

Cc: stable@vger.kernel.org
Fixes: b311048c174d ("usb: dwc3: gadget: Rewrite endpoint allocation flow")
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/00122b7cc5be06abef461776e7cc9f5ebc8bc1cb.1713229786.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/ep0.c