Skip to content

serial: stm32: improve DMA pause and resume

Valentin Caron linux-arm-kernel linux-serial lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 1 replySuperseded

Changes in v2 from the cover letter

- Add my Signed-off in Amelie's patch.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6serial: stm32: avoid clearing DMAT bit during transferdrivers/tty/serial/stm32-usart.c+44 -320 replies
2/6serial: stm32: use DMAT as a configuration bitdrivers/tty/serial/stm32-usart.c+3 -50 replies
3/6serial: stm32: modify parameter and rename stm32_usart_rx_dma_enableddrivers/tty/serial/stm32-usart.c+8 -80 replies
4/6serial: stm32: group dma pause/resume error handling into single functiondrivers/tty/serial/stm32-usart.c drivers/tty/serial/stm32-usart.h+83 -450 replies
5/6serial: stm32: replace access to DMAR bit by dmaengine_pause/resumedrivers/tty/serial/stm32-usart.c+106 -940 replies
6/6serial: stm32: synchronize RX DMA channel in shutdowndrivers/tty/serial/stm32-usart.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/6] serial: stm32: improve DMA pause and resume

This series improves DMA management in stm32-usart driver.

It is not recommended to switch DMAT and DMAR bits when a DMA transfer is in progress. This is going to be replaced by dmaengine_pause or dmaengine_resume.

stm32_usart_rx_dma_pause, stm32_usart_rx_dma_resume, stm32_usart_tx_dma_pause and stm32_usart_tx_dma_resume functions, are all redirected to a single function, called "stm32_usart_dma_pause_resume", that has been created to simplify dma pause/resume.

Since v1:
- Add my Signed-off in Amelie's patch.

Amelie Delaunay (1):
serial: stm32: synchronize RX DMA channel in shutdown

Valentin Caron (5):
serial: stm32: avoid clearing DMAT bit during transfer
serial: stm32: use DMAT as a configuration bit
serial: stm32: modify parameter and rename stm32_usart_rx_dma_enabled
serial: stm32: group dma pause/resume error handling into single
function
serial: stm32: replace access to DMAR bit by dmaengine_pause/resume

 drivers/tty/serial/stm32-usart.c | 307 ++++++++++++++++++-------------
 drivers/tty/serial/stm32-usart.h |   1 +
 2 files changed, 185 insertions(+), 123 deletions(-)
Signature · 7 lines
2.25.1


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel