Skip to content

Commit ef8abc0

Browse files
Kriskura176767gregkh
authored andcommitted
usb: dwc3: qcom: Don't leave BCR asserted
Leaving the USB BCR asserted prevents the associated GDSC to turn on. This blocks any subsequent attempts of probing the device, e.g. after a probe deferral, with the following showing in the log: [ 1.332226] usb30_prim_gdsc status stuck at 'off' Leave the BCR deasserted when exiting the driver to avoid this issue. Cc: stable <[email protected]> Fixes: a4333c3 ("usb: dwc3: Add Qualcomm DWC3 glue driver") Acked-by: Thinh Nguyen <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Krishna Kurapati <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent cd0f864 commit ef8abc0

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/usb/dwc3/dwc3-qcom.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,12 +680,12 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
680680
ret = reset_control_deassert(qcom->resets);
681681
if (ret) {
682682
dev_err(&pdev->dev, "failed to deassert resets, err=%d\n", ret);
683-
goto reset_assert;
683+
return ret;
684684
}
685685

686686
ret = clk_bulk_prepare_enable(qcom->num_clocks, qcom->clks);
687687
if (ret < 0)
688-
goto reset_assert;
688+
return ret;
689689

690690
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
691691
if (!r) {
@@ -755,8 +755,6 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
755755
dwc3_core_remove(&qcom->dwc);
756756
clk_disable:
757757
clk_bulk_disable_unprepare(qcom->num_clocks, qcom->clks);
758-
reset_assert:
759-
reset_control_assert(qcom->resets);
760758

761759
return ret;
762760
}
@@ -771,7 +769,6 @@ static void dwc3_qcom_remove(struct platform_device *pdev)
771769
clk_bulk_disable_unprepare(qcom->num_clocks, qcom->clks);
772770

773771
dwc3_qcom_interconnect_exit(qcom);
774-
reset_control_assert(qcom->resets);
775772
}
776773

777774
static int dwc3_qcom_pm_suspend(struct device *dev)

0 commit comments

Comments
 (0)