Commit ebdb668c authored by Harini Katakam's avatar Harini Katakam Committed by Neena Busireddy
Browse files

spi: core: Increase timeout value



The existing timeout value in wait_for_completion_timeout is
calculated from the transfer length and speed with tolerance of 10msec.
This is too low because this is used for error conditions such as
hardware hang etc.
The xfer->speed_hz considered may not be the actual speed set
because the best clock divisor is chosen from a limited set such that
the actual speed <= requested speed. This will lead to timeout being
less than actual transfer time.
Considering acceptable latencies, this timeout can be set to a
value double the expected transfer plus 100 msecs.
This patch adds the same in the core.

Signed-off-by: default avatarHarini Katakam <harinik@xilinx.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
(cherry picked from commit eee668a9)
(cherry picked from commit e123573ecd0b16f52998e731a0659fdc89d841e4)
parent 1d0474ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment