atmel_serial: fix flow control bug
authorItai Levi <itai.levi.devel@gmail.com>
Thu, 15 Jan 2009 21:50:43 +0000 (13:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:35 +0000 (16:39 -0800)
commit1f14081d8b31b2780e2e6e2ae2766264e1f7d38b
treea6902b80c7baef2e49206a4c44c5f96a98fd6dc6
parentdb0fb1848a645b0b1b033765f3a5244e7afd2e3c
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 <haavard.skinnemoen@atmel.com>
Cc: "Andrew Victor" <avictor.za@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/atmel_serial.c