From: Vijaya Krishna Nivarthi Date: Tue, 25 Apr 2023 08:42:08 +0000 (+0530) Subject: spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG X-Git-Tag: v6.1.39~517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ded1a7a570b0c667a7616706edcd5f01fa14d372;p=platform%2Fkernel%2Flinux-starfive.git spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG [ Upstream commit 5fd7c99ecf45c8ee8a9b1268f0ffc91cc6271da2 ] The CS_TOGGLE bit when set is supposed to instruct FW to toggle CS line between words. The driver with intent of disabling this behaviour has been unsetting BIT(0). This has not caused any trouble so far because the original BIT(1) is untouched and BIT(0) likely wasn't being used. Correct this to prevent a potential future bug. Signed-off-by: Vijaya Krishna Nivarthi --- diff --git a/drivers/spi/spi-geni-qcom.c b/drivers/spi/spi-geni-qcom.c index dd15818..689b94f 100644 --- a/drivers/spi/spi-geni-qcom.c +++ b/drivers/spi/spi-geni-qcom.c @@ -35,7 +35,7 @@ #define CS_DEMUX_OUTPUT_SEL GENMASK(3, 0) #define SE_SPI_TRANS_CFG 0x25c -#define CS_TOGGLE BIT(0) +#define CS_TOGGLE BIT(1) #define SE_SPI_WORD_LEN 0x268 #define WORD_LEN_MSK GENMASK(9, 0)