]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: omap2-mcspi: Disable multi-mode when the previous message kept CS asserted
authorFélix Piédallu <felix.piedallu@non.se.com>
Fri, 6 Jun 2025 13:37:25 +0000 (15:37 +0200)
committerMark Brown <broonie@kernel.org>
Sun, 8 Jun 2025 22:29:52 +0000 (23:29 +0100)
commit10c24e0d2f7cd2bc8a847cf750f01301ce67dbc8
treedcc7209c02486493bbdf85755de6857bc06ca4dc
parenta5bf5272295d3f058adeee025d2a0b6625f8ba7b
spi: omap2-mcspi: Disable multi-mode when the previous message kept CS asserted

When the last transfer of a SPI message has the cs_change flag, the CS is kept
asserted after the message.
The next message can't use multi-mode because the CS will be briefly deasserted
before the first transfer.

Remove the early exit of the list_for_each_entry because the last transfer
actually needs to be always checked.

Fixes: d153ff4056cb ("spi: omap2-mcspi: Add support for MULTI-mode")
Signed-off-by: Félix Piédallu <felix.piedallu@non.se.com>
Link: https://patch.msgid.link/20250606-cs_change_fix-v1-2-27191a98a2e5@non.se.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c