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)
commit16a0ce4e10edfe376b3071f161c71c4160c89d6b
tree081e182b8820c09f279a8bb0002e1d9b1aa627fb
parent38dbfb59d1175ef458d006556061adeaa8751b72
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