NFC: trf7970a: Only fill FIFO if there is space
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:29 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:43 +0000 (23:13 +0200)
commit0e840ed59ba79670b66bba8c1d50b6f67e72d3fb
tree7b20b0b75f61776f7b55fd31e270339f16832e3a
parent7a1e5552af61dce180f70c6fafe31553254b3728
NFC: trf7970a: Only fill FIFO if there is space

Handle the case where trf7970a_fill_fifo() is
called but there is no room in the FIFO for
more TX data.  When this happens, wait for
another interrupt indicating that there is
now space (and set a timer in case that
interrupt never occurs).

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