PM / devfreq: exynos: add Exynos PPMU as a soft module dependency
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 18 May 2023 07:44:03 +0000 (09:44 +0200)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 29 May 2023 14:24:13 +0000 (23:24 +0900)
commitccb69e228ea48f8ea1e4a7dfeedf501329a9fdf4
treec5462a37329581366f14ca80ecad57bcf55ad975
parent4a3a2c32a5ee163bc8f195b04751f165aa4d9c83
PM / devfreq: exynos: add Exynos PPMU as a soft module dependency

Commit adf8238ef403 ("ARM: dts: exynos: move exynos-bus nodes out of soc
in Exynos4412") changed the order of the exynos-bus nodes, what results
in different probe order of the Exynos Bus devices. Although the driver
properly handles the deferred probe and all devices seems to be finally
properly registered, this change revealed some kind of a bug related to
PPMU counters registration and passive governor operation. Usually in 1
of 10 boots this results in complete board freeze during loading of the
kernel modules.

To avoid that freeze, ensure that the Exynos PPMU driver is already
loaded before the Exynos Bus driver starts probing.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/exynos-bus.c