kernel_samsung_a53x/drivers/usb/dwc3
Krishna Kurapati 939abb0345 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-11-23 23:20:47 +01:00
..
core-exynos.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
core.c usb: dwc3: core: Skip setting event buffers for host only controllers 2024-11-23 23:20:47 +01:00
core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drd.c usb: dwc3: Fix default mode initialization 2024-11-18 12:10:58 +01:00
dwc3-exynos-otg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-exynos.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-exynos.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-haps.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-imx8mp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-keystone.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-meson-g12a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-of-simple.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-omap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-pci.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dwc3-qcom.c USB: dwc3: qcom: fix wakeup after probe deferral 2024-11-18 12:11:08 +01:00
dwc3-st.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ep0.c usb: dwc: ep0: Update request status in dwc3_ep0_stall_restart 2024-11-18 12:12:46 +01:00
exynos-otg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_usb_tpmon.c Fix clang 16 errors treewide 2024-06-15 16:28:48 -03:00
exynos_usb_tpmon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gadget.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gadget.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
io.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ulpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00