]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbd1a89823c13180e606ff8284a5c8da196091db7
tree52b638aca8b8a3cbc6f52e8b49240705cf94d541
parent98823ec930481af5ffda78b46b30a39c1e22ea57
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