mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
serial: bfin_uart: narrow the reboot condition in DMA tx interrupt
Check if xmit buffer pointers are set to zero. Signed-off-by: Sonic Zhang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
b06d2f20cd
commit
239c25b1a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue