Message ID | 20200724123748.25369-5-amelie.delaunay@st.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Fix DWC2 USB role switch support | expand |
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c index 68b56b43a45e..f4a0371c3e89 100644 --- a/drivers/usb/dwc2/platform.c +++ b/drivers/usb/dwc2/platform.c @@ -600,6 +600,8 @@ static int dwc2_driver_probe(struct platform_device *dev) return 0; error_init: + dwc2_drd_exit(hsotg); + if (hsotg->params.activate_stm_id_vb_detection) regulator_disable(hsotg->usb33d); error:
In case of failure, role switch has to be unregistered. It is done by dwc2_drd_exit. Fixes: bc0f0d4a5853 ("usb: dwc2: override PHY input signals with usb role switch support") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com> --- drivers/usb/dwc2/platform.c | 2 ++ 1 file changed, 2 insertions(+)