Skip to content

tty: serial: samsung: RX DMA fixes in stop_rx and the RX completion

Samarth Narang linux-arm-kernel linux-samsung-soc linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tty: serial: samsung: pause the RX DMA channel in stop_rxdrivers/tty/serial/samsung_tty.c+1 -11 reply
2/2tty: serial: samsung: do not re-arm RX DMA once RX has been stoppeddrivers/tty/serial/samsung_tty.c+5 -11 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMarek Szyprowski
1/2R-b
2/2

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 0/2] tty: serial: samsung: RX DMA fixes in stop_rx and the RX completion

This series addresses two RX DMA issues previously raised under the release_dma patch [1] and subsequently confirmed by Marek Szyprowski.

The first fixes s3c24xx_serial_stop_rx(), which incorrectly pauses the TX channel instead of the RX channel before reading the RX residue. The second prevents s3c24xx_serial_rx_dma_complete() from re-arming RX DMA after reception has been stopped or during shutdown, which could otherwise start a new transfer after the channel has been terminated.

The series applies on top of [1] and has only been compile-tested with arm64 defconfig and W=1, with no new warnings. It has not been tested on hardware.

[1] https://lore.kernel.org/r/[email protected]

Samarth Narang (2):
tty: serial: samsung: pause the RX DMA channel in stop_rx
tty: serial: samsung: do not re-arm RX DMA once RX has been stopped

 drivers/tty/serial/samsung_tty.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

base-commit: 83f32c773255720a661aa45d83e36278135f23f5
prerequisite-patch-id: cfa1c1db9d23de3ae1cc6f0476a8ac611d09c7a8

Signature · 1 line
2.34.1