• M
    NFC: trf7970a: Handle low-watermark IRQ when transmitting · bece3c54
    Mark A. Greer 提交于
    Commit 4dd836e4 ("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: NMark A. Greer <mgreer@animalcreek.com>
    Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
    bece3c54
trf7970a.c 43.4 KB