spi: omap3: Fix timeout handling
authorDavid Dueck <davidcdueck@googlemail.com>
Wed, 1 Apr 2015 12:20:24 +0000 (14:20 +0200)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Mon, 27 Apr 2015 15:38:42 +0000 (21:08 +0530)
commit611c9ba2b8c27d6e3c63b663c88f1c8be9638c3a
tree052bb82f7e9edac667f76a32df52e28d96fb5fa1
parent122d805fd4bd478bb83536348291d34ae648364b
spi: omap3: Fix timeout handling

The timeout value is never reset during the transfer. This means that when
transferring more data we eventually trigger the timeout.

This was reported on the mailing list:
"Spansion SPI flash read timeout with AM335x"

Signed-off-by: David Dueck <davidcdueck@googlemail.com>
CC: Tom Rini <trini@konsulko.com>
CC: Stefan Roese <sr@denx.de>
CC: Andy Pont <andy.pont@sdcsystems.com>
Tested-by: David Dueck <davidcdueck@googlemail.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
drivers/spi/omap3_spi.c