]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: trf7970a: Handle low-watermark IRQ when transmitting
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 2 Sep 2014 22:12:30 +0000 (15:12 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Sep 2014 21:13:44 +0000 (23:13 +0200)
commitb68406b01167c93a05c390175210edcf0f4af0ac
tree6ac60b17bcda0b575d3cd39d7625882fb6d1e138
parentb54af0f26be84552ad2f5c5218ce1c1485ef0873
NFC: trf7970a: Handle low-watermark IRQ when transmitting

Commit 321ec2c1ab94 ("NFC: trf7970a: Reset FIFO when
'End of TX' Interrupt Occurs") fixes the issue that
it was meant to fix but adds the unfortunate side
effect of causing the driver to report an error
when the TX low-watermark level is passed during
transmits.  This can be fixed by checking whether
the IRQ status indicates that the low-watermark
has been passed when transmitting.  If it has been
passed and the FIFO is empty, then its safe to reset
the FIFO.  Otherwise, silently continue since another
TX interrupt will be generated and the FIFO will be
reset then.

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