]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi-geni-qcom: remove manual CS control
authorJonathan Marek <jonathan@marek.ca>
Thu, 20 Nov 2025 21:11:58 +0000 (16:11 -0500)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:39:22 +0000 (19:39 +0900)
commitb99181cdf9fa0247dda3ba1228b4578286ab7ecd
tree1ea660448acde6b88e9a98389d6f56077b4ca1a5
parent28d21dfcea0121afec04451733a6c553fd319c8e
spi-geni-qcom: remove manual CS control

The GPI_DMA mode already uses automatic CS control, to use automatic CS
control for non-GPI case all that's needed is to set the FRAGMENTATION flag
using the same logic as setup_gsi_xfer(). (note clearing SPI_TRANS_CFG's
CS_TOGGLE bit enables automatic CS control, the comment was wrong)

spi_geni_set_cs() is slow, so this is a big performance improvement.

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Link: https://patch.msgid.link/20251120211204.24078-1-jonathan@marek.ca
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-geni-qcom.c