spi: imx: replace fixed timeout with calculated
authorAnton Bondarenko <anton.bondarenko.sama@gmail.com>
Fri, 19 Feb 2016 07:43:03 +0000 (08:43 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 19 Feb 2016 15:50:47 +0000 (00:50 +0900)
commit4bfe927a11b18db447706507654aef83c9ef15c1
tree86f67a7c054d7ffbdf7acbe0d20bd98e5d9cd50f
parenta4e5efc0d219fd92e21ee4e7404a52e2f4ec596a
spi: imx: replace fixed timeout with calculated

Fixed timeout value can fire while transaction is ongoing. This may happen
because there are no strict requirements on SPI transaction duration.
Dynamic timeout value is generated based on SCLK and transaction size.

There is also 4 * SCLK delay between TX bursts related to HW internal CS change.

Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c
This page took 0.024507 seconds and 5 git commands to generate.