]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: samsung: exynos4: Enable VPLL and EPLL clocks for suspend/resume cycle
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 19 Sep 2017 10:01:08 +0000 (12:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:19 +0000 (11:56 +0200)
commitefabff1c770e040db48a33491bd7b2307eeb5c53
tree76d1236c852dadb81013d54916db971d1f170672
parentc3256e3cec91e573f8daccbd3fbfb34fd4dca2f0
clk: samsung: exynos4: Enable VPLL and EPLL clocks for suspend/resume cycle

commit 5dcbeca615ef12047a5f4097b91030cbf995b1d2 upstream.

Commit 6edfa11cb396 ("clk: samsung: Add enable/disable operation for
PLL36XX clocks") added enable/disable operations to PLL clocks. Prior that
VPLL and EPPL clocks were always enabled because the enable bit was never
touched. Those clocks have to be enabled during suspend/resume cycle,
because otherwise board fails to enter sleep mode. This patch enables them
unconditionally before entering system suspend state. System restore
function will set them to the previous state saved in the register cache
done before that unconditional enable.

Fixes: 6edfa11cb396 ("clk: samsung: Add enable/disable operation for PLL36XX clocks")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/samsung/clk-exynos4.c