aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorStefan Agner <[email protected]>2016-07-19 13:13:03 +0530
committerGreg Kroah-Hartman <[email protected]>2016-08-31 15:48:28 +0200
commitb70b636186de5329a5a8e9e9a254b8d690d8575b (patch)
tree20b90917d286e2fbf2dca239aa05ae1d406683cf /tools/perf/scripts/python
parente16b46f190a22587898b331f9d58583b0b166c9a (diff)
tty: serial: fsl_lpuart: consider TX FIFO too in tx_empty
Currently the tx_empty callback only considers the Transmit Complete Flag (TC). The reference manual is not quite clear if the TC flag covers the TX FIFO too. Debug prints on real hardware have shown that from time to time the TC flag is asserted (indicating Transmitter idle) while there are still data in the TX FIFO. Hence, in this case the serial core will call the shutdown callback even though there are data remaining in the TX FIFO buffers. Avoid early shutdowns by considering the TX FIFO empty flag too. Also avoid theoretical race conditions between DMA and the driver by checking whether the TX DMA is in progress too. Signed-off-by: Stefan Agner <[email protected]> Signed-off-by: Bhuvanchandra DV <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions