spi: sunxi: fix transfer timeout
authorMichal Suchanek <hramrach@gmail.com>
Mon, 13 Jun 2016 17:46:49 +0000 (17:46 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 14 Jun 2016 09:05:18 +0000 (10:05 +0100)
commit719bd6542044efd9b338a53dba1bef45f40ca169
tree837acfe993c8949db1570b977c6dd5d2a3cb37fb
parent6d9fe44bd73d567d04d3a68a2d2fa521ab9532f2
spi: sunxi: fix transfer timeout

The trasfer timeout is fixed at 1000 ms. Reading a 4Mbyte flash over
1MHz SPI bus takes way longer than that. Calculate the timeout from the
actual time the transfer is supposed to take and multiply by 2 for good
measure.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-sun4i.c
drivers/spi/spi-sun6i.c
This page took 0.032839 seconds and 5 git commands to generate.