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)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 25 Aug 2019 03:46:07 +0000 (12:46 +0900)
commit2c2b20e0da89c76759ee28c6824413ab2fa3bfc6
treee01f137e58350b52642f5720d9a2a62c321b6196
parente2fc1677eea749414a7db0058847509566bf64e1
PM / devfreq: exynos-bus: Correct clock enable sequence

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>
drivers/devfreq/exynos-bus.c