Skip to content

Add DMA support for LINFlexD UART driver

Larisa Grigore dri-devel imx linux-devicetree linux-media linux-serial lkml llvm oe-kbuild oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13serial: linflexuart: Fix locking in set_termiosdrivers/tty/serial/fsl_linflexuart.c+2 -22 replies
2/13serial: linflexuart: Clean SLEEP bit in LINCR1 after suspenddrivers/tty/serial/fsl_linflexuart.c+1 -22 replies
3/13serial: linflexuart: Check FIFO full before writingdrivers/tty/serial/fsl_linflexuart.c+8 -60 replies
4/13serial: linflexuart: Correctly clear UARTSR in buffer modedrivers/tty/serial/fsl_linflexuart.c+4 -50 replies
5/13serial: linflexuart: Update RXEN/TXEN outside INITM modedrivers/tty/serial/fsl_linflexuart.c+4 -20 replies
6/13serial: linflexuart: Ensure FIFO is empty when entering INITMdrivers/tty/serial/fsl_linflexuart.c+42 -30 replies
7/13serial: linflexuart: Revert earlycon workarounddrivers/tty/serial/fsl_linflexuart.c+1 -860 replies
8/13dt-bindings: serial: fsl-linflexuart: add clock input propertiesDocumentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml+18 -05 replies
9/13dt-bindings: serial: fsl-linflexuart: add dma propertiesDocumentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml+13 -06 replies
10/13serial: linflexuart: Add support for changing baudratedrivers/tty/serial/fsl_linflexuart.c+116 -80 replies
11/13serial: linflexuart: Add support for configurable stop bitsdrivers/tty/serial/fsl_linflexuart.c+28 -30 replies
12/13serial: linflexuart: Add DMA supportdrivers/tty/serial/fsl_linflexuart.c+597 -451 reply
13/13serial: linflexuart: Avoid stopping DMA during receive operationsdrivers/tty/serial/fsl_linflexuart.c+68 -510 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchJared KangasEnric Balletbo i Serra
SeriesT-b T-b
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/13] Add DMA support for LINFlexD UART driver

This patchset enhances the LINFlexD UART driver and its device tree bindings to support DMA transfers, configurable clock inputs, dynamic baudrate changes, and termios features. It also includes a series of fixes and improvements to ensure reliable operation across various modes and configurations.

The changes added can be summarized as follows:
1. Fixes with respect to FIFO handling, locking, interrupt related registers and INITM mode transition.
2. Removal of the earlycon workaround, as proper FIFO handling and INITM transitions now ensure stable behavior.
3. Support for configurable stop bits and dynamic baudrate changes based on clock inputs and termios settings.
4. Optional DMA support for RX and TX paths, preventing character loss during high-throughput operations like copy-paste. Cyclic DMA is used for RX to avoid gaps between transactions.

Larisa Grigore (8):
serial: linflexuart: Clean SLEEP bit in LINCR1 after suspend
serial: linflexuart: Check FIFO full before writing
serial: linflexuart: Correctly clear UARTSR in buffer mode
serial: linflexuart: Update RXEN/TXEN outside INITM mode
serial: linflexuart: Ensure FIFO is empty when entering INITM
serial: linflexuart: Revert earlycon workaround
serial: linflexuart: Add support for configurable stop bits
serial: linflexuart: Add DMA support

Radu Pirea (5):
serial: linflexuart: Fix locking in set_termios
dt-bindings: serial: fsl-linflexuart: add clock input properties
dt-bindings: serial: fsl-linflexuart: add dma properties
serial: linflexuart: Add support for changing baudrate
serial: linflexuart: Avoid stopping DMA during receive operations

 .../bindings/serial/fsl,s32-linflexuart.yaml  |  31 +
 drivers/tty/serial/fsl_linflexuart.c          | 972 +++++++++++++++---
 2 files changed, 846 insertions(+), 157 deletions(-)
Signature · 1 line
2.47.0