]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: EXYNOS: Properly skip unitialized parent clock in power domain on
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 22 Apr 2016 07:26:52 +0000 (09:26 +0200)
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 25 Apr 2016 09:35:37 +0000 (11:35 +0200)
commiteb9dc296a074da0bc66b4db56506736371361f88
tree372e8a320bc88075df29fab3663e3c5deb1a4809
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
ARM: EXYNOS: Properly skip unitialized parent clock in power domain on

We want to skip reparenting a clock on turning on power domain, if we
do not have the parent yet. The parent is obtained when turning the
domain off. However due to a typo, the loop is continued on IS_ERR() of
clock being reparented, not on the IS_ERR() of the parent.

Theoretically this could lead to OOPS on first turn on of a power
domain, if there was no turn off before. Practically that should never
happen because all power domains are turned on by default (reset value,
bootloader does not turn off them usually) so the first action will be
always turn off.

Fixes: 5dfdb078b8a5 ("ARM: EXYNOS: Get current parent clock for power domain on/off")
Reported-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
arch/arm/mach-exynos/pm_domains.c