* [PATCH 00/12] clk: samsung: Use platform_driver_probe() to avoid __refdata
@ 2025-03-05 21:42 Krzysztof Kozlowski
2025-03-05 21:43 ` Krzysztof Kozlowski
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-05 21:42 UTC (permalink / raw)
To: Krzysztof Kozlowski, Sylwester Nawrocki, Chanwoo Choi,
Alim Akhtar, Michael Turquette, Stephen Boyd, Sam Protsenko,
Peter Griffin, André Draszik, Tudor Ambarus
Cc: linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel,
Krzysztof Kozlowski
RFT/RFC because testing needed. I tried to do the same on exynos5-subcmu
and it caused weird oopses which even KASAN did not narrow. Probably
because of multiple exynos5-subcmu devices?
Switch registering platform driver to platform_driver_probe(), so the
'struct platform_driver' can be properly discarded after init and there
won't be need of __refdata to silence DEBUG_SECTION_MISMATCH.
The change requires using subsys_initcall instead of core_initcall,
because no device drivers would bound in the latter, as required by
platform_driver_probe().
Best regards,
Krzysztof
---
Krzysztof Kozlowski (12):
clk: samsung: exynos2200: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos4412-isp: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos5433: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos7870: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos7885: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos850: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos8895: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynos990: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynosautov9: Use platform_driver_probe() to avoid __refdata
clk: samsung: exynosautov920: Use platform_driver_probe() to avoid __refdata
clk: samsung: fsd: Use platform_driver_probe() to avoid __refdata
clk: samsung: gs101: Use platform_driver_probe() to avoid __refdata
drivers/clk/samsung/clk-exynos2200.c | 7 +++----
drivers/clk/samsung/clk-exynos4412-isp.c | 7 +++----
drivers/clk/samsung/clk-exynos5433.c | 7 +++----
drivers/clk/samsung/clk-exynos7870.c | 7 +++----
drivers/clk/samsung/clk-exynos7885.c | 7 +++----
drivers/clk/samsung/clk-exynos850.c | 7 +++----
drivers/clk/samsung/clk-exynos8895.c | 7 +++----
drivers/clk/samsung/clk-exynos990.c | 7 +++----
drivers/clk/samsung/clk-exynosautov9.c | 5 ++---
drivers/clk/samsung/clk-exynosautov920.c | 7 +++----
drivers/clk/samsung/clk-fsd.c | 7 +++----
drivers/clk/samsung/clk-gs101.c | 7 +++----
12 files changed, 35 insertions(+), 47 deletions(-)
---
base-commit: 7ec162622e66a4ff886f8f28712ea1b13069e1aa
change-id: 20250305-clk-samsung-ref-init-data-6b2cd242409f
Best regards,
--
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 00/12] clk: samsung: Use platform_driver_probe() to avoid __refdata
2025-03-05 21:42 [PATCH 00/12] clk: samsung: Use platform_driver_probe() to avoid __refdata Krzysztof Kozlowski
@ 2025-03-05 21:43 ` Krzysztof Kozlowski
0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2025-03-05 21:43 UTC (permalink / raw)
To: Krzysztof Kozlowski, Sylwester Nawrocki, Chanwoo Choi,
Alim Akhtar, Michael Turquette, Stephen Boyd, Sam Protsenko,
Peter Griffin, André Draszik, Tudor Ambarus
Cc: linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel
On 05/03/2025 22:42, Krzysztof Kozlowski wrote:
> RFT/RFC because testing needed. I tried to do the same on exynos5-subcmu
> and it caused weird oopses which even KASAN did not narrow. Probably
> because of multiple exynos5-subcmu devices?
>
> Switch registering platform driver to platform_driver_probe(), so the
> 'struct platform_driver' can be properly discarded after init and there
> won't be need of __refdata to silence DEBUG_SECTION_MISMATCH.
>
> The change requires using subsys_initcall instead of core_initcall,
> because no device drivers would bound in the latter, as required by
> platform_driver_probe().
Forgot to set prefix and I aborted this send. Please ignore, new posting
coming.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-03-05 21:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-05 21:42 [PATCH 00/12] clk: samsung: Use platform_driver_probe() to avoid __refdata Krzysztof Kozlowski
2025-03-05 21:43 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®