]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
serial: imx-serial - move DMA buffer configuration to DT
authorNandor Han <nandor.han@ge.com>
Wed, 28 Jun 2017 10:15:14 +0000 (12:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Jun 2017 15:08:01 +0000 (17:08 +0200)
commita3015affdf76ef279fbbb3710a220bab7e9ea04b
treee3a3478c72e67d050299fc770f90d9506eac5595
parent6376cd39ea0b9a56c3ddfb8c794b7322a7029b63
serial: imx-serial - move DMA buffer configuration to DT

The size of the DMA buffer can affect the delta time between data being
produced and data being consumed. Basically the DMA system will move
data to tty buffer when a) DMA buffer is full b) serial line is idle.
The situation is visible when producer generates data continuously and
there is no possibility for idle line. At this point the DMA buffer is
directly affecting the delta time.

The patch will add the possibility to configure the DMA buffers in DT,
which case by case can be configured separately for every driver
instance. The DT configuration is optional and in case missing the
driver will use the 4096 buffer with 4 periods (as before), therefore no
clients are impacted by this change.

Signed-off-by: Nandor Han <nandor.han@ge.com>
Signed-off-by: Romain Perier <romain.perier@collabora.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/serial/fsl-imx-uart.txt
drivers/tty/serial/imx.c