]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
spi: xilinx: increase number of retries before declaring stall
authorAlvaro Gamez Machado <alvaro.gamez@hazent.com>
Thu, 6 Nov 2025 13:45:35 +0000 (14:45 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 7 Nov 2025 09:37:46 +0000 (09:37 +0000)
commit939edfaa10f1d22e6af6a84bf4bd96dc49c67302
tree755a3f9097a46c457e65a071c346e45dbec1a3a1
parent86d57d9c07d54e8cb385ffe800930816ccdba0c1
spi: xilinx: increase number of retries before declaring stall

SPI devices using a (relative) slow frequency need a larger time.

For instance, microblaze running at 83.25MHz and performing a
3 bytes transaction using a 10MHz/16 = 625kHz needed this stall
value increased to at least 20. The SPI device is quite slow, but
also is the microblaze, so set this value to 32 to give it even
more margin.

Signed-off-by: Alvaro Gamez Machado <alvaro.gamez@hazent.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://patch.msgid.link/20251106134545.31942-1-alvaro.gamez@hazent.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-xilinx.c