Skip to content

serial: mxs-auart: wait for DMA buffer to flush before shutdown

Hector Palacios linux-arm-kernel linux-serial 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 0 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Changes in v3 from the cover letter

* Added Reviewed/Acked-by tags to first commit.
* Move tx_empty callback up to avoid forward declaration.
* Move BUSY flag check to tx_empty callback to avoid check on shutdown call.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2serial: mxs-auart: set the FIFO size to DMA buffer sizedrivers/tty/serial/mxs-auart.c+8 -10 replies
2/2serial: mxs-auart: wait for FIFO to flush before shutdowndrivers/tty/serial/mxs-auart.c+17 -83 replies

Reviews trailers per patch

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

PatchMarek VasutUwe Kleine-K?nig
1/2R-b A-b
2/2

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

Read the v3 thread

Cover letter [PATCH v3 0/2] serial: mxs-auart: wait for DMA buffer to flush before shutdown

This fixes a bug whereby the AUART was shutdown while bytes were still waiting in the DMA buffer to be transmistted.

Changes since v2:
* Added Reviewed/Acked-by tags to first commit.
* Move tx_empty callback up to avoid forward declaration.
* Move BUSY flag check to tx_empty callback to avoid check on shutdown call.

Changes since v1:
* Split the patch in two: one to set the fifosize to the DMA buffer size, and another to wait for the FIFO to empty before disabling the AUART.
* The wait for the fifo to empty is now independent of DMA being enabled.
* Fix bug on readl() call
* Remove bad URL in commit log

Hector Palacios (2):
serial: mxs-auart: set the FIFO size to DMA buffer size
serial: mxs-auart: wait for FIFO to flush before shutdown

 drivers/tty/serial/mxs-auart.c | 34 +++++++++++++++++++++++++---------
 1 file changed, 25 insertions(+), 9 deletions(-)
Signature · 1 line
1.8.4