Commit 7ebcb3e8 authored by Ulf Hansson's avatar Ulf Hansson Committed by Mauro Carvalho Chehab

[media] exynos-gsc: Do full clock gating at runtime PM suspend

To potentially save more power in runtime PM suspend state, let's
also prepare/unprepare the clock from the runtime PM callbacks.

[mszyprow: rebased onto v4.9-rc4]
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Tested-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a006c04e
...@@ -1154,7 +1154,7 @@ static int gsc_runtime_resume(struct device *dev) ...@@ -1154,7 +1154,7 @@ static int gsc_runtime_resume(struct device *dev)
pr_debug("gsc%d: state: 0x%lx", gsc->id, gsc->state); pr_debug("gsc%d: state: 0x%lx", gsc->id, gsc->state);
ret = clk_enable(gsc->clock); ret = clk_prepare_enable(gsc->clock);
if (ret) if (ret)
return ret; return ret;
...@@ -1172,7 +1172,7 @@ static int gsc_runtime_suspend(struct device *dev) ...@@ -1172,7 +1172,7 @@ static int gsc_runtime_suspend(struct device *dev)
ret = gsc_m2m_suspend(gsc); ret = gsc_m2m_suspend(gsc);
if (!ret) if (!ret)
clk_disable(gsc->clock); clk_disable_unprepare(gsc->clock);
pr_debug("gsc%d: state: 0x%lx", gsc->id, gsc->state); pr_debug("gsc%d: state: 0x%lx", gsc->id, gsc->state);
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment