Skip to content
Unverified Commit cf6d79a0 authored by Adam Butcher's avatar Adam Butcher Committed by Mark Brown
Browse files

spi: spi-imx: fix off-by-one in mx51 CPU mode burst length

c712c05e ("spi: imx: fix the burst length at DMA mode and CPU mode")
corrects three cases of setting the ECSPI burst length but erroneously
leaves the in-range CPU case one bit to big (in that field a value of
0 means 1 bit).  The effect was that transmissions that should have been
8-bit bytes appeared as 9-bit causing failed communication with SPI
devices.

Link: https://lore.kernel.org/all/20240201105451.507005-1-carlos.song@nxp.com/
Link: https://lore.kernel.org/all/20240204091912.36488-1-carlos.song@nxp.com/


Fixes: c712c05e ("spi: imx: fix the burst length at DMA mode and CPU mode")
Signed-off-by: default avatarAdam Butcher <adam@jessamine.co.uk>
Link: https://msgid.link/r/20240318175119.3334-1-adam@jessamine.co.uk


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 5bd249ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment