]> git.baikalelectronics.ru Git - kernel.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)
commit4ffd76ba1df4816ba3149d5f3c93a9e9bf1bc344
treee3a3478c72e67d050299fc770f90d9506eac5595
parent9655c5265b034d51654ead7e5c03dd039ac0d487
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