]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: exynos5420: Restore GATE_BUS_TOP on suspend
authorJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Wed, 8 Apr 2015 05:34:12 +0000 (07:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:20:56 +0000 (08:20 -0700)
commitbc03b0cbd57c8afffd10e0211861c044a009858a
tree8ab5b58e4ca7ee776892401c3effc3753e35a11f
parentcf5bee3415189cf7dc35cd3f82234a97a36fb214
clk: exynos5420: Restore GATE_BUS_TOP on suspend

commit 97372e5a99449b4fffa824a382ad6358066a9918 upstream.

Commit ae43b3289186 ("ARM: 8202/1: dmaengine: pl330: Add runtime Power
Management support v12") added pm support for the pl330 dma driver but
it makes the clock for the Exynos5420 MDMA0 DMA controller to be gated
during suspend and this in turn makes its parent clock aclk266_g2d to
be gated. But the clock needs to be ungated prior suspend to allow the
system to be suspend and resumed correctly.

Add GATE_BUS_TOP register to the list of registers to be restored when
the system enters into a suspend state so aclk266_g2d will be ungated.

Thanks to Abhilash Kesavan for figuring out that this was the issue.

Fixes: ae43b32 ("ARM: 8202/1: dmaengine: pl330: Add runtime Power Management support v12")
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Kevin Hilman <khilman@linaro.org>
Tested-by: Abhilash Kesavan <a.kesavan@samsung.com>
Acked-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/samsung/clk-exynos5420.c