usb: dwc3-meson-g12a: support OTG switch for all IP versions
authorDmitry Rokosov <ddrokosov@sberdevices.ru>
Thu, 11 May 2023 21:04:55 +0000 (00:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 May 2023 10:03:24 +0000 (19:03 +0900)
commit6bae03b0484b54f699d69339fbec5658e885c224
treeb31bf2448f9a295e955636def2664d7bc58ecde9
parenta9889e71b5e90665bfa90d8dd350caa2d3ee7797
usb: dwc3-meson-g12a: support OTG switch for all IP versions

From now, the Amlogic A1 USB controller is capable of switching between
host and gadget modes based on the status of the OTG_ID signal or via
manual USB role change.
Previously, only the Amlogic A1 IP version did not use OTG support for
host only mode, but this is no longer applicable.
Therefore, the 'otg_switch_supported' option can now be removed as
it is no longer required.

Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20230511210455.6634-4-ddrokosov@sberdevices.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc3/dwc3-meson-g12a.c