drivers: spi: ti-qspi: wait for busy bit clear before data write/read
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 17 Feb 2015 19:03:51 +0000 (00:33 +0530)
committerMark Brown <broonie@kernel.org>
Sat, 21 Feb 2015 09:29:09 +0000 (18:29 +0900)
commit006110476478c69c399d0cd25888eefab0e69267
tree629e830087284cec4134234dff0fe67f0a2062a4
parent66886337bf2a523aef76cff84c846335db5f85f9
drivers: spi: ti-qspi: wait for busy bit clear before data write/read

Data corruption is seen while reading/writing large data from/to qspi
device because the data register is over written or read before data
is ready which is denoted by busy bit in status register. SO adding
a busy bit check before writing/reading data to/from qspi device.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c