[PATCH] clk: zynq: Check CPU_2X gate registration before enabling it
Krzysztof Kozlowski
krzk at kernel.org
Sun Nov 29 18:11:49 PST 2026
On Sun, 29 Nov 2026 19:25:33 +0000, Jiawen Liu wrote:
> During early Zynq boot, of_clk_init() invokes zynq_clk_setup() for the
> enabled xlnx,ps7-clkc node. If CPU_2X gate registration fails, for
> example on allocation failure, clk_register_gate() returns an error
> pointer. clk_prepare_enable() passes it to clk_prepare(), which
> dereferences it before the driver's registration check can report the
> failure.
>
> Check the CPU_2X registration result before enabling the gate. Keep
> the early enable for a valid gate and let the existing registration
> check report a failed gate before the clock provider is published.
>
> Static control-flow review, an
> ARM multi_v7_defconfig build of drivers/clk/zynq/, git diff --check,
> and checkpatch.pl passed. Runtime and hardware reproduction were not
> performed.
>
> Fixes: 3dccfecdb867 ("clk: zynq: Force CPU_2X clock to be ungated")
> Signed-off-by: Jiawen Liu <liu1298662399 at gmail.com>
> ---
> drivers/clk/zynq/clkc.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.
More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.
Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list