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

Commit 8026f33a authored by Danny Segal's avatar Danny Segal
Browse files

usb: gadget: hsic: Disable usb_hsic_xcvr_clk when entering low power mode



HSIC core driver is missing disabling and upreparing the usb_hsic_xcvr_clk
clock when it enters into low-power mode. Added a call to clock disable and
upreparing API on low-power mode entry and clock enable and preparing API
on low-power mode exit for this clock. This allows saving extra power and
TCXO shutdown.

Change-Id: I2c822e15b13b76f340e936f62044058c53874328
Signed-off-by: default avatarDanny Segal <dsegal@codeaurora.org>
parent a620cba0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -388,6 +388,7 @@ static int msm_hsic_suspend(struct msm_hsic_per *mhsic)
	}
	clk_disable_unprepare(mhsic->phy_clk);
	clk_disable_unprepare(mhsic->cal_clk);
	clk_disable_unprepare(mhsic->alt_core_clk);

	ret = msm_xo_mode_vote(mhsic->xo_handle, MSM_XO_MODE_OFF);
	if (ret)
@@ -445,6 +446,7 @@ static int msm_hsic_resume(struct msm_hsic_per *mhsic)
	}
	clk_prepare_enable(mhsic->phy_clk);
	clk_prepare_enable(mhsic->cal_clk);
	clk_prepare_enable(mhsic->alt_core_clk);

	temp = readl_relaxed(USB_USBCMD);
	temp &= ~ASYNC_INTR_CTRL;