]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: samsung: exynosautov920: Fix incorrect CLKS_NR_CPUCL0 definition
authorShin Son <shin.son@samsung.com>
Mon, 28 Apr 2025 11:35:16 +0000 (20:35 +0900)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 30 Apr 2025 07:26:36 +0000 (09:26 +0200)
commitf00aef8e2ee0b642abdb91682bec5af38532faf7
treec0ea0a6edfdcdbc8becd0f52133033ccf4825f14
parent84d36f26d0314a089405af3df9e213dcfb8ecbc0
clk: samsung: exynosautov920: Fix incorrect CLKS_NR_CPUCL0 definition

The CLKS_NR_CPUCL0 macro was incorrectly defined based on a wrong clock ID.
It mistakenly referenced CLK_DOUT_CLUSTER0_PERIPHCLK, which corresponds to
a cluster peripheral clock, not the last clock ID for CPUCL0 as intended.

This patch corrects the definition to use CLK_DOUT_CPUCL0_NOCP + 1,
properly matching the last clock ID for CPUCL0 as intended.

This error was due to confusion with the hardware diagram, and this patch
ensures that the number of clocks for CPUCL0 is correctly defined.

Signed-off-by: Shin Son <shin.son@samsung.com>
Link: https://lore.kernel.org/r/20250428113517.426987-4-shin.son@samsung.com
Fixes: 59636ec89c2c ("clk: samsung: exynosautov920: add cpucl0 clock support")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/clk/samsung/clk-exynosautov920.c