]> git.baikalelectronics.ru Git - kernel.git/commit
serial: fsl_lpuart: update RX timer on successful DMA transfer
authorStefan Agner <stefan@agner.ch>
Sat, 10 Jan 2015 08:33:46 +0000 (09:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Feb 2015 18:09:55 +0000 (10:09 -0800)
commit064f75d16f551537c71e0b048fa55c6ae49dd094
treecd220f8bcb7a8354b2ddcbfe5419228dae8e2dfc
parente553e55cb37b7d5ced9d8a6656594515cc404915
serial: fsl_lpuart: update RX timer on successful DMA transfer

To end a DMA transfer which did not consume a whole buffer (e.g. one
character only), a RX timer is used. When lots of data are received
the DMA transfer will complete and setup another DMA transfer, which
in turn might complete again. In this cases, it is not necessary to
abort the DMA transfers using the RX timer. This change pushes the
RX timer timeout into the future each time a DMA transfer completed.

Aborting the DMA was not very harmful, since the next received
character lead to setup of another RX DMA.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c