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 10:47:55 +0000 (12:47 +0200)
commit98a727a4db5162f20aabff15fe04e66255c5cf85
tree56ec8f526e7059c1e3087037a56e9c7fba6fcf33
parent70fd2442bb008b8920ff37f428bc283c8e193660
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