summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2015-06-09 00:43:28 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-06-09 13:04:39 +0200
commit7ed3ad7562ccdd9dca296b30a556865c772d99e6 (patch)
tree20b0a2cd99569cb43f4b6c887ff6b58ccfc7d1e4 /kernel
parent8e6453ae0b58330e7171a3bc6bdece035b34bbe2 (diff)
tty: serial: fsl_lpuart: avoid TX FIFO overflow
In some rare cases, the TX DMA gets started while there are still data in the TX FIFO and the Transmit Data Register Empty Flag (TDRE) is asserted. In this case, the DMA writes data and overflows the TX FIFO. It is not quite clear why the TDRE is asserted in this case, reading the status register which should clear the flag did not alleviate the problem. It seems that the switching between DMA and interrupt mode leads to this glitches. Avoid TX FIFO overrun by using a burst size of 1, which allows to transfer all data using DMA and avoid switching between DMA and interrupt mode entirely.
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions