linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] serial: mxs-auart: wait for DMA buffer to flush before shutdown
@ 2013-10-03  7:32 Hector Palacios
  2013-10-03  7:32 ` [PATCH v3 1/2] serial: mxs-auart: set the FIFO size to DMA buffer size Hector Palacios
  2013-10-03  7:32 ` [PATCH v3 2/2] serial: mxs-auart: wait for FIFO to flush before shutdown Hector Palacios
  0 siblings, 2 replies; 6+ messages in thread
From: Hector Palacios @ 2013-10-03  7:32 UTC (permalink / raw)
  To: linux-arm-kernel

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(-)

-- 
1.8.4

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-10-16 19:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03  7:32 [PATCH v3 0/2] serial: mxs-auart: wait for DMA buffer to flush before shutdown Hector Palacios
2013-10-03  7:32 ` [PATCH v3 1/2] serial: mxs-auart: set the FIFO size to DMA buffer size Hector Palacios
2013-10-03  7:32 ` [PATCH v3 2/2] serial: mxs-auart: wait for FIFO to flush before shutdown Hector Palacios
2013-10-03 18:17   ` Uwe Kleine-König
2013-10-16 19:54     ` Greg KH
2013-10-09  7:55   ` Huang Shijie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).