]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: configure proper DMA burst sizes
authorLucas Stach <l.stach@pengutronix.de>
Fri, 4 Sep 2015 15:52:40 +0000 (17:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 17:43:06 +0000 (18:43 +0100)
commit9f0a77512447081142afcec8043c0681d86fc1bf
tree068cd5ab4af05f2933e2c92815141c74012aa411
parent7d2e47fa6e0d9e0eada6efe2f33c77998266d476
serial: imx: configure proper DMA burst sizes

Triggering the DMA engine for every byte is horribly inefficient.
Also it doesn't allow to use the aging timer for the RX FIFO as this
requires the DMA engine to leave one byte remaining in the FIFO when
doing a normal burst transfer.

Adjust watermark levels so that the DMA engine can do at least 8 byte
burst transfers. This is a conservative value, as the both TX and RX
FIFOs are able to contain 32 bytes.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Jiada Wang <jiada_wang@mentor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c