From: Marek Szyprowski Date: Thu, 18 May 2023 07:44:03 +0000 (+0200) Subject: PM / devfreq: exynos: add Exynos PPMU as a soft module dependency X-Git-Tag: v6.5-rc1~212^2~3^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ccb69e228ea48f8ea1e4a7dfeedf501329a9fdf4;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Krzysztof Kozlowski Signed-off-by: Chanwoo Choi --- diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c index 88414445adf3a..245898f1a88e2 100644 --- a/drivers/devfreq/exynos-bus.c +++ b/drivers/devfreq/exynos-bus.c @@ -518,6 +518,7 @@ static struct platform_driver exynos_bus_platdrv = { }; module_platform_driver(exynos_bus_platdrv); +MODULE_SOFTDEP("pre: exynos_ppmu"); MODULE_DESCRIPTION("Generic Exynos Bus frequency driver"); MODULE_AUTHOR("Chanwoo Choi "); MODULE_LICENSE("GPL v2");