Skip to content
Unverified Commit e9b220ae authored by Benjamin Bigler's avatar Benjamin Bigler Committed by Mark Brown
Browse files

spi: spi-imx: correctly configure burst length when using dma



If DMA is used, burst length should be set to the bus width of the DMA.
Otherwise, the SPI hardware will transmit/receive one word per DMA
request.
Since this issue affects both transmission and reception, it cannot be
detected with a loopback test.
Replace magic numbers 512 and 0xfff with MX51_ECSPI_CTRL_MAX_BURST.

Reported-by Stefan Bigler <linux@bigler.io>

Signed-off-by: default avatarBenjamin Bigler <benjamin@bigler.one>
Fixes: 15a6af94 ("spi: Increase imx51 ecspi burst length based on transfer length")
Link: https://lore.kernel.org/r/8a415902c751cdbb4b20ce76569216ed@mail.infomaniak.com
Link: https://lore.kernel.org/r/20231209222338.5564-1-benjamin@bigler.one


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7a733e06
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