]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: omap2-mcspi: Disable multi mode when CS should be kept asserted after message
authorFélix Piédallu <felix.piedallu@non.se.com>
Fri, 6 Jun 2025 13:37:24 +0000 (15:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2025 13:32:27 +0000 (15:32 +0200)
commit01a968b1c4219c6cc6a280836f0d61ba0f9ddc53
tree58b6cdaceb132ce3cd9d48f43a12a90164b41b6f
parentf74abf2cdd23b380d46ade4061980a4ed260eefd
spi: omap2-mcspi: Disable multi mode when CS should be kept asserted after message

[ Upstream commit a5bf5272295d3f058adeee025d2a0b6625f8ba7b ]

When the last transfer of a SPI message has the cs_change flag, the CS is kept
asserted after the message.
Multi-mode can't respect this as CS is deasserted by the hardware at the end of
the message.

Disable multi-mode when not applicable to the current message.

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-1-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