ARM: EXYNOS: Get current parent clock for power domain on/off
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 3 Apr 2015 09:25:54 +0000 (11:25 +0200)
committerKukjin Kim <kgene@kernel.org>
Fri, 5 Jun 2015 17:17:56 +0000 (02:17 +0900)
commit29e5eea06bc19114b1df668f85b605914766a899
tree1ed2b1c02c06e9061584794e141e6796c836211d
parent0c5f989f1fde27df3ddb7ffd84525b4b64eb179c
ARM: EXYNOS: Get current parent clock for power domain on/off

Using a fixed (by DTS) parent for clocks when turning on the power
domain may introduce issues in other drivers. For example when such
driver changes the parent during runtime and expects that he is the
only place of such change.

Do not rely on DTS providing the fixed parent for such clocks. Instead
before switching domain off, grab a current parent of a clock with
clk_get_parent().

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Documentation/devicetree/bindings/arm/exynos/power_domain.txt
arch/arm/mach-exynos/pm_domains.c