]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: spi-geni-qcom: Correct CS_TOGGLE bit in SPI_TRANS_CFG
authorVijaya Krishna Nivarthi <quic_vnivarth@quicinc.com>
Tue, 25 Apr 2023 08:42:08 +0000 (14:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jul 2023 06:37:07 +0000 (08:37 +0200)
commitbc509951205744435b22dc0acc8db20349eea351
treedeca39cce3a81f9543bc81524d0a51f7cc9194df
parentf394d204d64095d72ad9f03ff98f3f3743bf743a
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 <quic_vnivarth@quicinc.com
Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org
Fixes: 561de45f72bd ("spi: spi-geni-qcom: Add SPI driver support for GENI based QUP")
Reviewed-by: Douglas Anderson <dianders@chromium.org
Link: https://lore.kernel.org/r/1682412128-1913-1-git-send-email-quic_vnivarth@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-geni-qcom.c