bfin: discard invalid data and clear RXS in bf5xx spi driver
authorScott Jiang <scott.jiang.linux@gmail.com>
Wed, 7 Dec 2011 19:53:30 +0000 (14:53 -0500)
committerSonic Zhang <sonic.zhang@analog.com>
Mon, 13 May 2013 08:26:27 +0000 (16:26 +0800)
commitd4d4f903773e0e5540baa00157585de25a542ba6
tree4d4b4bd66d747838a8a9ecf539fda92307f5e070
parente76276df74f60eeb3c28418971bbe8cd6fc736e5
bfin: discard invalid data and clear RXS in bf5xx spi driver

There may be dirty data in RDBR, so we should discard invalid data.
This operation also clears RXS bit in STAT register.

Signed-off-by: Scott Jiang <scott.jiang.linux@gmail.com>
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
drivers/spi/bfin_spi.c