]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: qcom: enable vbus override when in OTG dr-mode
authorNeil Armstrong <neil.armstrong@linaro.org>
Tue, 24 Jan 2023 08:31:21 +0000 (09:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:28:14 +0000 (11:28 +0100)
commit45995a7fc317ea5db1243865bda6d3250de90268
tree2634f5d4447dd1053997e12214ad89750cec402c
parent54c7f57ae02c499dfc28d4770709c75d2cf0fe74
usb: dwc3: qcom: enable vbus override when in OTG dr-mode

[ Upstream commit eb320f76e31dc835b9f57f04af1a2353b13bb7d8 ]

With vbus override enabled when in OTG dr_mode, Host<->Peripheral
switch now works on SM8550, otherwise the DWC3 seems to be stuck
in Host mode only.

Fixes: 9f6dbe320417 ("usb: dwc3: Add Qualcomm DWC3 glue driver")
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20230123-topic-sm8550-upstream-dwc3-qcom-otg-v2-1-2d400e598463@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc3/dwc3-qcom.c