mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
atmel_serial: fix flow control bug
Fix the following problem, related to hardware flow control (CTS/RTS): Transmitting while CTS line is asserted in DMA mode, due to not checking for tx-stopped condition. We found these problems while testing the UARTs with hardware flow-control. Signed-off-by: Haavard Skinnemoen <[email protected]> Cc: "Andrew Victor" <[email protected]> Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
db0fb1848a
commit
1f14081d8b
1 changed files with 1 additions and 1 deletions
|
|
@ -579,7 +579,7 @@ static void atmel_tx_dma(struct uart_port *port)
|
|||
/* disable PDC transmit */
|
||||
UART_PUT_PTCR(port, ATMEL_PDC_TXTDIS);
|
||||
|
||||
if (!uart_circ_empty(xmit)) {
|
||||
if (!uart_circ_empty(xmit) && !uart_tx_stopped(port)) {
|
||||
dma_sync_single_for_device(port->dev,
|
||||
pdc->dma_addr,
|
||||
pdc->dma_size,
|
||||
|
|
|
|||
Loading…
Reference in a new issue