[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220713164529.28444-1-amit.kumar-mahapatra@xilinx.com>
Date: Wed, 13 Jul 2022 22:15:29 +0530
From: Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>
To: <broonie@...nel.org>
CC: <linux-spi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<git@....com>, <sai.krishna.potthuri@....com>,
<amit.kumar-mahapatra@....com>,
Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@...inx.com>,
Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>
Subject: [PATCH] spi: spi-cadence: Fix SPI NO Slave Select macro definition
From: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@...inx.com>
Fix SPI NO Slave Select macro definition, when all the SPI CS bits
are high which means no slave is selected.
Fixes: 21b511ddee09 ("spi: spi-cadence: Fix SPI CS gets toggling sporadically")
Signed-off-by: Sai Krishna Potthuri <lakshmi.sai.krishna.potthuri@...inx.com>
Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@...inx.com>
---
BRANCH: for-next
---
drivers/spi/spi-cadence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c
index 31d778e9d255..6a7f7df1e776 100644
--- a/drivers/spi/spi-cadence.c
+++ b/drivers/spi/spi-cadence.c
@@ -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
--
2.17.1
Powered by blists - more mailing lists