]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: meson-g12a: add missing fclk_div2 to spicc
authorDa Xue <da@libre.computer>
Mon, 12 May 2025 14:26:16 +0000 (10:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:07:30 +0000 (11:07 +0100)
commit0b73e208505057719c0931e23799a6ff0be09ec2
treedaba4f1ba0264d9f1899a8a0c72f6e7842cd7eba
parent4dcbdf7597db92737d42ce4c563b65beacd9d6bd
clk: meson-g12a: add missing fclk_div2 to spicc

commit daf004f87c3520c414992893e2eadd5db5f86a5a upstream.

SPICC is missing fclk_div2, which means fclk_div5 and fclk_div7 indexes
are wrong on this clock. This causes the spicc module to output sclk at
2.5x the expected rate when clock index 3 is picked.

Adding the missing fclk_div2 resolves this.

[jbrunet: amended commit description]
Fixes: a18c8e0b7697 ("clk: meson: g12a: add support for the SPICC SCLK Source clocks")
Cc: stable@vger.kernel.org # 6.1
Signed-off-by: Da Xue <da@libre.computer>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20250512142617.2175291-1-da@libre.computer
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/meson/g12a.c