WSL2-Linux-Kernel/drivers/usb/dwc3
Thinh Nguyen c98f2d25f8 usb: dwc3: gadget: Don't disconnect if not started
commit b191a18cb5c47109ca696370a74a5062a70adfd0 upstream.

Don't go through soft-disconnection sequence if the controller hasn't
started. Otherwise, there will be timeout and warning reports from the
soft-disconnection flow.

Cc: stable@vger.kernel.org
Fixes: 61a348857e86 ("usb: dwc3: gadget: Fix NULL pointer dereference in dwc3_gadget_suspend")
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Closes: https://lore.kernel.org/linux-usb/20240215233536.7yejlj3zzkl23vjd@synopsys.com/T/#mb0661cd5f9272602af390c18392b9a36da4f96e6
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/e3be9b929934e0680a6f4b8f6eb11b18ae9c7e07.1708043922.git.Thinh.Nguyen@synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-01 13:21:49 +01:00
..
Kconfig
Makefile
core.c Revert "usb: dwc3: don't reset device side if dwc3 was configured as host-only" 2024-01-25 14:52:47 -08:00
core.h usb: dwc3: gadget: Wait for ep0 xfers to complete during dequeue 2024-02-23 08:55:11 +01:00
debug.h
debugfs.c usb: dwc3: debugfs: Resume dwc3 before accessing registers 2023-05-24 17:36:52 +01:00
drd.c usb: dwc3: Fix default mode initialization 2023-12-03 07:31:25 +01:00
dwc3-exynos.c
dwc3-haps.c
dwc3-imx8mp.c
dwc3-keystone.c
dwc3-meson-g12a.c usb: dwc3: meson-g12a: do post init to fix broken usb after resumption 2023-09-06 21:28:38 +01:00
dwc3-of-simple.c
dwc3-omap.c
dwc3-pci.c usb: dwc3: pci: skip BYT GPIO lookup table for hardwired phy 2023-08-03 10:22:42 +02:00
dwc3-qcom.c USB: dwc3: qcom: fix wakeup after probe deferral 2023-12-03 07:31:26 +01:00
dwc3-st.c
dwc3-xilinx.c
ep0.c usb: dwc3: Fix ep0 handling when getting reset while doing control transfer 2024-02-23 08:55:11 +01:00
gadget.c usb: dwc3: gadget: Don't disconnect if not started 2024-03-01 13:21:49 +01:00
gadget.h usb: dwc3: Fix ep0 handling when getting reset while doing control transfer 2024-02-23 08:55:11 +01:00
host.c usb: dwc3: host: Set XHCI_SG_TRB_CACHE_SIZE_QUIRK 2024-02-23 08:55:00 +01:00
io.h
trace.c
trace.h
ulpi.c