Searched hist:"719 bd6542044efd9b338a53dba1bef45f40ca169" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/spi/ |
H A D | spi-sun4i.c | diff 719bd6542044efd9b338a53dba1bef45f40ca169 Mon Jun 13 12:46:49 CDT 2016 Michal Suchanek <hramrach@gmail.com> 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
|
H A D | spi-sun6i.c | diff 719bd6542044efd9b338a53dba1bef45f40ca169 Mon Jun 13 12:46:49 CDT 2016 Michal Suchanek <hramrach@gmail.com> 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
|