linux-stable/drivers/usb
Wesley Cheng 07f8591d38 usb: dwc3: gadget: Execute gadget stop after halting the controller
[ Upstream commit 39674be56f ]

Do not call gadget stop until the poll for controller halt is
completed.  DEVTEN is cleared as part of gadget stop, so the intention to
allow ep0 events to continue while waiting for controller halt is not
happening.

Fixes: c96683798e ("usb: dwc3: ep0: Don't prepare beyond Setup stage")
Cc: stable@vger.kernel.org
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230420212759.29429-2-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-17 13:58:38 +02:00
..
atm
c67x00
cdns3 usb: cdnsp: Fixes error: uninitialized symbol 'len' 2023-04-13 17:02:43 +02:00
chipidea usb: chipidea: fix missing goto in `ci_hdrc_probe` 2023-05-11 23:11:23 +09:00
class USB: make devnode() callback in usb_class_driver take a const * 2022-10-20 12:11:56 +02:00
common USB: ULPI: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:42 +01:00
core USB: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:39 +01:00
dwc2 usb: dwc2: fix a devres leak in hw_enable upon suspend resume 2023-03-30 12:51:33 +02:00
dwc3 usb: dwc3: gadget: Execute gadget stop after halting the controller 2023-05-17 13:58:38 +02:00
early usb: early: xhci-dbc: Fix a potential out-of-bound memory access 2023-03-10 09:28:53 +01:00
fotg210 USB: fotg210: fix memory leak with using debugfs_lookup() 2023-03-11 13:50:42 +01:00
gadget usb: gadget: tegra-xudc: Fix crash in vbus_draw 2023-05-11 23:11:23 +09:00
host usb: host: xhci-rcar: remove leftover quirk handling 2023-05-11 23:11:20 +09:00
image
isp1760
misc usb: misc: onboard-hub: add support for Microchip USB2517 USB 2.0 hub 2023-03-30 12:51:33 +02:00
mon
mtu3 usb: mtu3: fix kernel panic at qmu transfer done irq handler 2023-05-11 23:11:23 +09:00
musb usb: musb: mediatek: don't unregister something that wasn't registered 2023-03-10 09:28:53 +01:00
phy usb: isp1301-omap: Convert to i2c's .probe_new() 2022-11-22 17:33:27 +01:00
renesas_usbhs
roles Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
serial USB: serial: option: add UNISOC vendor and TOZED LT70C product 2023-05-01 08:29:23 +09:00
storage uas: Add US_FL_NO_REPORT_OPCODES for JMicron JMS583Gen 2 2023-03-30 12:51:25 +02:00
typec usb: typec: altmodes/displayport: Fix configure initial pin assignment 2023-04-13 17:02:44 +02:00
usbip Including fixes from bpf, netfilter and can. 2022-12-21 08:41:32 -08:00
Kconfig usb: fotg210: Collect pieces of dual mode controller 2022-11-09 12:38:09 +01:00
Makefile usb: fotg210: Collect pieces of dual mode controller 2022-11-09 12:38:09 +01:00
usb-skeleton.c usb: add usb_set_intfdata() documentation 2022-11-29 08:56:09 +01:00