Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Marek Szyprowski and committed by
Chanwoo Choi
ccb69e22 4a3a2c32

+1
+1
drivers/devfreq/exynos-bus.c
··· 518 518 }; 519 519 module_platform_driver(exynos_bus_platdrv); 520 520 521 + MODULE_SOFTDEP("pre: exynos_ppmu"); 521 522 MODULE_DESCRIPTION("Generic Exynos Bus frequency driver"); 522 523 MODULE_AUTHOR("Chanwoo Choi <cw00.choi@samsung.com>"); 523 524 MODULE_LICENSE("GPL v2");