usb: dwc2: don't use ID/Vbus detection if usb-role-switch on STM32MP15 SoCs
authorAmelie Delaunay <amelie.delaunay@st.com>
Tue, 16 Jun 2020 14:07:16 +0000 (16:07 +0200)
committerFelipe Balbi <balbi@kernel.org>
Thu, 23 Jul 2020 11:45:36 +0000 (14:45 +0300)
commit916f8b627288039d9e771a9b2ab1b3c79b303039
tree52b638aca8b8a3cbc6f52e8b49240705cf94d541
parentbc0f0d4a5853e32ba97a0318f774570428fc5634
usb: dwc2: don't use ID/Vbus detection if usb-role-switch on STM32MP15 SoCs

If usb-role-switch is present in the device tree, it means that ID and Vbus
signals are not connected to the OTG controller but to an external
component (GPIOs, Type-C controller). In this configuration, usb role
switch is used to force valid sessions on STM32MP15 SoCs.

Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/params.c