]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
spi: cs42l43: Correct SPI root clock speed
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 4 Jun 2024 13:17:04 +0000 (14:17 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 4 Jun 2024 17:49:30 +0000 (18:49 +0100)
The root clock is actually 49.152MHz not 40MHz, as it is derived from
the primary audio clock, update the driver to match. This error can
cause the actual clock rate to be higher than the requested clock rate
on the SPI bus.

Fixes: ef75e767167a ("spi: cs42l43: Add SPI controller support")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://msgid.link/r/20240604131704.3227500-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cs42l43.c

index 9d747ea6992640c76ab75ff98b2be6ef9e97b575..902a0734cc361e7541a48bb266eff6f6dc90fb56 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/units.h>
 
 #define CS42L43_FIFO_SIZE              16
-#define CS42L43_SPI_ROOT_HZ            (40 * HZ_PER_MHZ)
+#define CS42L43_SPI_ROOT_HZ            49152000
 #define CS42L43_SPI_MAX_LENGTH         65532
 
 enum cs42l43_spi_cmd {