NFC: trf7970a: Reread FIFO Status Register when draining FIFO
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:31 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:44 +0000 (23:13 +0200)
commit5d8f759424d3d7da998a7a9eee702071c8e5d381
treec82b826a0fbaf05eb8eb4e7669a080fd92b79477
parentbece3c544fee62ba7750f70b214d612fd02dcc8f
NFC: trf7970a: Reread FIFO Status Register when draining FIFO

Receiving an interrupt whose Interrupt Status Register
value has only the SRX bit set is supposed to mean that
all of the data from the tag has been received.  That
turns out to not be true so we need to reread the FIFO
Status Register to tell if there are any new bytes in
the FIFO.  If there are, continue receiving them; if
there aren't, assume that the receive is complete and
pass the data up.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c