phy: amlogic: phy-meson-gxl-usb2: keep ID pull-up even in Host mode
authorNeil Armstrong <narmstrong@baylibre.com>
Fri, 20 Nov 2020 15:38:55 +0000 (16:38 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 30 Nov 2020 11:01:03 +0000 (16:31 +0530)
commit122586d62206c68e061f0329443ff65985e1aae5
tree80da0e0f842198909d35b6903fa10a218b0231fd
parent4eed2812de6addc934497688503568435a540b51
phy: amlogic: phy-meson-gxl-usb2: keep ID pull-up even in Host mode

In order to keep OTG ID detection even when in Host mode, the ID line of
the PHY (if the current phy is an OTG one) pull-up should be kept
enable in both modes.

This fixes OTG switch on GXL, GXM & AXG platforms, otherwise once switched
to Host, the ID detection doesn't work anymore to switch back to Device.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20201120153855.3920757-1-narmstrong@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/amlogic/phy-meson-gxl-usb2.c