usb: dwc3: meson-g12a: support the GXL/GXM DWC3 host phy disconnect
authorNeil Armstrong <narmstrong@baylibre.com>
Thu, 16 Apr 2020 12:19:04 +0000 (14:19 +0200)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:37 +0000 (11:09 +0300)
commitdf7e374581515c10857d72c409cc8cac4021259b
tree844d564b430b7d909a6e27499e6e4831ced6a705
parent5b0ba0caaf3acc2665e58184349447eaa47bf3d5
usb: dwc3: meson-g12a: support the GXL/GXM DWC3 host phy disconnect

On the Amlogic GXL/GXM SoCs, the OTG PHY status signals are always
connected to the DWC3 controller, thus crashing the controller when
switching to OTG mode when port is not populated with a device/cable to
Host.

Amlogic added a bit to disconnect the OTG PHY status signals from the DWC3
to be used when switching the OTG PHY as Device to the DWC2 controller.

The drawback is that it makes the DWC3 port state machine stall and needs
a full reset of the DWC3 controller to get connect status to the port
connected to the OTG PHY, but not the other one.

Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/dwc3-meson-g12a.c