usb: otg: Fix usb_hs_system_clk to support PM suspned/resume
Add calls to enable/disable usb_hs_system_clk in
msm_otg_resume & msm_otg_suspend.
Change-Id: I27615aa54b5c2623dc42b1334f3d97b837cbc217
Signed-off-by: Amit Blay <ablay@codeaurora.org>
diff --git a/drivers/usb/otg/msm_otg.c b/drivers/usb/otg/msm_otg.c
index 6c60cc9..7f1641f 100644
--- a/drivers/usb/otg/msm_otg.c
+++ b/drivers/usb/otg/msm_otg.c
@@ -600,6 +600,9 @@
if (motg->core_clk)
clk_disable(motg->core_clk);
+ if (!IS_ERR(motg->system_clk))
+ clk_disable(motg->system_clk);
+
if (!IS_ERR(motg->pclk_src))
clk_disable(motg->pclk_src);
@@ -642,6 +645,9 @@
if (!IS_ERR(motg->pclk_src))
clk_enable(motg->pclk_src);
+ if (!IS_ERR(motg->system_clk))
+ clk_enable(motg->system_clk);
+
clk_enable(motg->pclk);
if (motg->core_clk)
clk_enable(motg->core_clk);
@@ -2070,6 +2076,8 @@
clk_disable(motg->pclk);
if (motg->core_clk)
clk_disable(motg->core_clk);
+ if (!IS_ERR(motg->system_clk))
+ clk_disable(motg->system_clk);
if (!IS_ERR(motg->pclk_src)) {
clk_disable(motg->pclk_src);
clk_put(motg->pclk_src);