]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: cs42l43: Drop cs35l56 SPI speed down to 11MHz
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 7 Jun 2024 10:34:23 +0000 (11:34 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 7 Jun 2024 13:27:03 +0000 (14:27 +0100)
Some internals of the cs35l56 can only support SPI speeds of up to
11MHz. Whilst some use-cases could support higher rates, keep things
simple by dropping the SPI speed down to this avoid any potential
issues.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240607103423.4159834-1-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cs42l43.c

index 902a0734cc361e7541a48bb266eff6f6dc90fb56..8b618ef0f7111f09cc6a060792071685f24e9bf1 100644 (file)
@@ -54,7 +54,7 @@ static const struct software_node ampr = {
 
 static struct spi_board_info ampl_info = {
        .modalias               = "cs35l56",
-       .max_speed_hz           = 20 * HZ_PER_MHZ,
+       .max_speed_hz           = 11 * HZ_PER_MHZ,
        .chip_select            = 0,
        .mode                   = SPI_MODE_0,
        .swnode                 = &ampl,
@@ -62,7 +62,7 @@ static struct spi_board_info ampl_info = {
 
 static struct spi_board_info ampr_info = {
        .modalias               = "cs35l56",
-       .max_speed_hz           = 20 * HZ_PER_MHZ,
+       .max_speed_hz           = 11 * HZ_PER_MHZ,
        .chip_select            = 1,
        .mode                   = SPI_MODE_0,
        .swnode                 = &ampr,