]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbdf0ba77a761b1be4f0c42b80f28e0229f80067c
treec82b826a0fbaf05eb8eb4e7669a080fd92b79477
parentc4e381ad1c67917305d10c8fb43604517d78f307
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