]> git.baikalelectronics.ru Git - kernel.git/commitdiff
spi: spi-cadence: Fix SPI NO Slave Select macro definition
authorSai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Wed, 13 Jul 2022 16:45:29 +0000 (22:15 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 20 Jul 2022 17:45:21 +0000 (18:45 +0100)
Fix SPI NO Slave Select macro definition, when all the SPI CS bits
are high which means no slave is selected.

Fixes: d421a4159490 ("spi: spi-cadence: Fix SPI CS gets toggling sporadically")
Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@xilinx.com>
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20220713164529.28444-1-amit.kumar-mahapatra@xilinx.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence.c

index 31d778e9d255b9ceb8848188d3a26c6a8540384e..6a7f7df1e7764f297788c01aad46c0b8fcc0bdeb 100644 (file)
@@ -69,7 +69,7 @@
 #define CDNS_SPI_BAUD_DIV_SHIFT                3 /* Baud rate divisor shift in CR */
 #define CDNS_SPI_SS_SHIFT              10 /* Slave Select field shift in CR */
 #define CDNS_SPI_SS0                   0x1 /* Slave Select zero */
-#define CDNS_SPI_NOSS                  0x3C /* No Slave select */
+#define CDNS_SPI_NOSS                  0xF /* No Slave select */
 
 /*
  * SPI Interrupt Registers bit Masks