Skip to content

Commit 4eecb64

Browse files
charleskeepaxbroonie
authored andcommitted
spi: cs42l43: Correct SPI root clock speed
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: ef75e76 ("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>
1 parent c3f38fa commit 4eecb64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi-cs42l43.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <linux/units.h>
2727

2828
#define CS42L43_FIFO_SIZE 16
29-
#define CS42L43_SPI_ROOT_HZ (40 * HZ_PER_MHZ)
29+
#define CS42L43_SPI_ROOT_HZ 49152000
3030
#define CS42L43_SPI_MAX_LENGTH 65532
3131

3232
enum cs42l43_spi_cmd {

0 commit comments

Comments
 (0)