usb: dwc2: don't use ID/Vbus detection if usb-role-switch on STM32MP15 SoCs
authorAmelie Delaunay <amelie.delaunay@st.com>
Wed, 9 Sep 2020 09:35:11 +0000 (11:35 +0200)
committerFelipe Balbi <balbi@kernel.org>
Fri, 2 Oct 2020 10:29:13 +0000 (13:29 +0300)
commitd58ba480285a1741ec65c3e470074d7ba31c7e60
treee68101b2d545f30330d1000e467190c4c6cbec91
parent17f934024e84e73cd55dd620a48c1b9e21fac87f
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>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc2/params.c