WSL2-Linux-Kernel/drivers/usb/dwc3
Krishna Kurapati 0f47e4fd6f usb: dwc3: core: Skip setting event buffers for host only controllers
[ Upstream commit 89d7f962994604a3e3d480832788d06179abefc5 ]

On some SoC's like SA8295P where the tertiary controller is host-only
capable, GEVTADDRHI/LO, GEVTSIZ, GEVTCOUNT registers are not accessible.
Trying to access them leads to a crash.

For DRD/Peripheral supported controllers, event buffer setup is done
again in gadget_pullup. Skip setup or cleanup of event buffers if
controller is host-only capable.

Suggested-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Krishna Kurapati <quic_kriskura@quicinc.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20240420044901.884098-4-quic_kriskura@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-04 13:23:28 +02:00
..
Kconfig
Makefile
core.c usb: dwc3: core: Skip setting event buffers for host only controllers 2024-09-04 13:23:28 +02:00
core.h usb: dwc3: core: Prevent phy suspend during init 2024-05-17 11:51:03 +02:00
debug.h USB: dwc3: fix memory leak with using debugfs_lookup() 2023-03-11 13:57:35 +01:00
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 usb: dwc3: exynos: Fix remove() function 2022-12-02 17:41:08 +01:00
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 usb: dwc3: omap: fix "unbalanced disables for smps10_out1" on omap5evm 2022-04-13 20:59:09 +02:00
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 usb: dwc3: xilinx: fix uninitialized return value 2022-02-01 17:27:15 +01:00
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: core: Prevent phy suspend during init 2024-05-17 11:51:03 +02: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: core: Prevent phy suspend during init 2024-05-17 11:51:03 +02:00
io.h
trace.c
trace.h
ulpi.c