linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: mxs-auart: wait for DMA buffer to flush before shutdown
@ 2013-10-02 12:02 Hector Palacios
  2013-10-02 12:02 ` [PATCH v2 1/2] serial: mxs-auart: set the FIFO size to DMA buffer size Hector Palacios
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hector Palacios @ 2013-10-02 12:02 UTC (permalink / raw)
  To: linux-serial
  Cc: hector.palacios, linux-arm-kernel, u.kleine-koenig, gregkh,
	b32955, marex, fabio.estevam, shawn.guo, jslaby

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

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 | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

-- 
1.8.4


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

end of thread, other threads:[~2013-10-02 20:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 12:02 [PATCH v2 0/2] serial: mxs-auart: wait for DMA buffer to flush before shutdown Hector Palacios
2013-10-02 12:02 ` [PATCH v2 1/2] serial: mxs-auart: set the FIFO size to DMA buffer size Hector Palacios
2013-10-02 12:25   ` Uwe Kleine-König
2013-10-02 12:02 ` [PATCH v2 2/2] serial: mxs-auart: wait for FIFO to flush before shutdown Hector Palacios
2013-10-02 12:22   ` Uwe Kleine-König
2013-10-02 14:01     ` Hector Palacios
2013-10-02 20:18       ` Uwe Kleine-König
2013-10-02 13:30 ` [PATCH v2 0/2] serial: mxs-auart: wait for DMA buffer " Marek Vasut

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