spi: spi-s3c64xx: Increase transfer timeout
authorŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 2 Oct 2020 12:22:42 +0000 (14:22 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 2 Oct 2020 20:54:23 +0000 (21:54 +0100)
commit9fe26adbe37fddeddb87e45adbc94ce2cd470ff1
tree7f82a90d6fd2f9e94c4c8b7566a1f4488753744d
parent20b4016a3bea0ce0a94bf4f20f2a9670ea1dfaa3
spi: spi-s3c64xx: Increase transfer timeout

Increase timeout by 30 ms for some wiggle room and set the minimum value
to 100 ms. This ensures a non-zero value for short transfers which
may take less than 1 ms. The timeout value does not affect
performance because it is used with a completion.

Similar formula is used in other drivers e.g. sun4i, sun6i.

Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Link: https://lore.kernel.org/r/20201002122243.26849-9-l.stelmach@samsung.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-s3c64xx.c