Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5bed6c8 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: dwc3-msm: Turn on core & iface clks before accessing AHB2PHY registers"

parents 9e6270bc 1d891d4b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3331,6 +3331,8 @@ static int dwc3_msm_probe(struct platform_device *pdev)
			 * turning on usb gdsc regulator clk is stuck off.
			 */
			dwc3_msm_config_gdsc(mdwc, 1);
			clk_prepare_enable(mdwc->iface_clk);
			clk_prepare_enable(mdwc->core_clk);
			clk_prepare_enable(mdwc->cfg_ahb_clk);
			/* Configure AHB2PHY for one wait state read/write*/
			val = readl_relaxed(mdwc->ahb2phy_base +
@@ -3343,6 +3345,8 @@ static int dwc3_msm_probe(struct platform_device *pdev)
				mb();
			}
			clk_disable_unprepare(mdwc->cfg_ahb_clk);
			clk_disable_unprepare(mdwc->core_clk);
			clk_disable_unprepare(mdwc->iface_clk);
			dwc3_msm_config_gdsc(mdwc, 0);
		}
	}