projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b06d2f2
)
serial: bfin_uart: narrow the reboot condition in DMA tx interrupt
author
Sonic Zhang
<sonic.zhang@analog.com>
Wed, 16 May 2012 06:22:24 +0000
(14:22 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 17 May 2012 20:25:56 +0000
(13:25 -0700)
Check if xmit buffer pointers are set to zero.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_uart.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/bfin_uart.c
b/drivers/tty/serial/bfin_uart.c
index 9acab114d8049c4e21a30f420d113f757b0e5359..56b95b0447d941c7afc71682b1a45dfa9761b3ad 100644
(file)
--- a/
drivers/tty/serial/bfin_uart.c
+++ b/
drivers/tty/serial/bfin_uart.c
@@
-532,7
+532,7
@@
static irqreturn_t bfin_serial_dma_tx_int(int irq, void *dev_id)
*/
UART_CLEAR_IER(uart, ETBEI);
uart->port.icount.tx += uart->tx_count;
- if (!
uart_circ_empty(xmit
)) {
+ if (!
(xmit->tail == 0 && xmit->head == 0
)) {
xmit->tail = (xmit->tail + uart->tx_count) & (UART_XMIT_SIZE - 1);
if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)