PM / devfreq: exynos-bus: Correct clock enable sequence
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Wed, 7 Aug 2019 13:38:35 +0000 (15:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:09:48 +0000 (13:09 +0200)
commitd51268d7574b14f67fe7ff51b193a9bb594535e2
treef74489fd249889c320defb998f219865e610f2fe
parent7e19b7e0d640d94583eb5b96609d398fcf20d0ed
PM / devfreq: exynos-bus: Correct clock enable sequence

[ Upstream commit 2c2b20e0da89c76759ee28c6824413ab2fa3bfc6 ]

Regulators should be enabled before clocks to avoid h/w hang. This
require change in exynos_bus_probe() to move exynos_bus_parse_of()
after exynos_bus_parent_parse_of() and change in error handling.
Similar change is needed in exynos_bus_exit() where clock should be
disabled before regulators.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/devfreq/exynos-bus.c