]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Add a timeout when waiting for transfers
authorMark Brown <broonie@linaro.org>
Thu, 30 Jan 2014 22:16:41 +0000 (22:16 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 3 Feb 2014 13:04:45 +0000 (13:04 +0000)
commit8645e9a2d12d00ae0b52ccdd68322785a1d522b3
tree081e182b8820c09f279a8bb0002e1d9b1aa627fb
parent6333ef0a6d756a72c48035feae2450b64f0372e4
spi: Add a timeout when waiting for transfers

Don't wait indefinitely for transfers to complete but time out after 10ms
more than we expect the transfer to take on the wire.

Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi.c