]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:27 +0000 (15:32 +0200)
commitcce3ea5f48c6a9c0ff0e49320764ede305a8366f
tree7713a99499fc075fea9c1058151ff4ecdb4547ed
parent01a968b1c4219c6cc6a280836f0d61ba0f9ddc53
spi: omap2-mcspi: Disable multi-mode when the previous message kept CS asserted

[ Upstream commit 10c24e0d2f7cd2bc8a847cf750f01301ce67dbc8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-omap2-mcspi.c