I found some more cases where the init structure is referenced from within the clk_hw struct after clk_registration is called. I suspect the rtc driver fix is useful to avoid crashes on Allwinner devices, reported by kernel-ci.
Cc: <b...@kernelci.org> Cc: <tomeu.viz...@collabora.com> Cc: <guillaume.tuc...@collabora.com> Cc: <mga...@collabora.com> Cc: <broo...@kernel.org> Cc: <matthew.h...@linaro.org> Cc: <khil...@baylibre.com> Cc: <enric.balle...@collabora.com> Cc: Sylwester Nawrocki <s.nawro...@samsung.com> Cc: Alessandro Zummo <a.zu...@towertech.it> Cc: Alexandre Belloni <alexandre.bell...@bootlin.com> Cc: Chen-Yu Tsai <w...@csie.org> Cc: Jun Nie <jun....@linaro.org> Cc: Maxime Ripard <maxime.rip...@bootlin.com> Cc: Shawn Guo <shawn...@kernel.org> Cc: Sugaya Taichi <sugaya.tai...@socionext.com> Cc: Taniya Das <t...@codeaurora.org> Stephen Boyd (4): clk: milbeaut: Don't reference clk_init_data after registration clk: zx296718: Don't reference clk_init_data after registration rtc: sun6i: Don't reference clk_init_data after registration clk: qcom: Remove error prints from DFS registration drivers/clk/clk-milbeaut.c | 2 +- drivers/clk/qcom/clk-rcg2.c | 8 +-- drivers/clk/zte/clk-zx296718.c | 109 +++++++++++++++------------------ drivers/rtc/rtc-sun6i.c | 2 +- 4 files changed, 52 insertions(+), 69 deletions(-) -- Sent by a computer through tubes