spi: meson-spicc: move wait completion in driver to take bursts delay in account
authorNeil Armstrong <neil.armstrong@linaro.org>
Wed, 26 Oct 2022 07:58:28 +0000 (09:58 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 26 Oct 2022 13:17:46 +0000 (14:17 +0100)
commit04694e50020b62b10bd0d46ff9e9708a6e1c7eb3
treee195392278ebd1299799b589f244aae6d9c6dc37
parent195583504be28df5d608a4677dd796117aea875f
spi: meson-spicc: move wait completion in driver to take bursts delay in account

Some delay occurs between each bursts, thus the default delay is wrong
and a timeout will occur with big enough transfers.

The solution is to handle the timeout management in the driver and
add some delay for each bursts in the timeout calculation.

Reported-by: Da Xue <da@libre.computer>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20221026-spicc-burst-delay-v1-0-1be5ffb7051a@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-meson-spicc.c