OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tty/serial: atmel: fix race condition (TX+DMA)
[android-x86/kernel.git]
/
drivers
/
tty
/
serial
/
atmel_serial.c
diff --git
a/drivers/tty/serial/atmel_serial.c
b/drivers/tty/serial/atmel_serial.c
index
dcebb28
..
5f64451
100644
(file)
--- a/
drivers/tty/serial/atmel_serial.c
+++ b/
drivers/tty/serial/atmel_serial.c
@@
-1951,6
+1951,11
@@
static void atmel_flush_buffer(struct uart_port *port)
atmel_uart_writel(port, ATMEL_PDC_TCR, 0);
atmel_port->pdc_tx.ofs = 0;
}
+ /*
+ * in uart_flush_buffer(), the xmit circular buffer has just
+ * been cleared, so we have to reset tx_len accordingly.
+ */
+ atmel_port->tx_len = 0;
}
/*