]> git.karo-electronics.de Git - linux-beck.git/commit
tty/serial: atmel: fix hardware handshake selection
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 12 Apr 2016 12:51:40 +0000 (14:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Apr 2016 03:07:10 +0000 (20:07 -0700)
commit5be605ac9af979265d7b64c160ad9928088a78be
treea4a156d4f4a1e555751b46890f21236300bd4e78
parentd175feca89a1c162f60f4e3560ca7bc9437c65eb
tty/serial: atmel: fix hardware handshake selection

Commit 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when
hardware handshake is enabled") actually allowed to enable hardware
handshaking.
Before, the CRTSCTS flags was silently ignored.

As the DMA controller can't drive RTS (as explain in the commit message).
Ensure that hardware flow control stays disabled when DMA is used and FIFOs
are not available.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Fixes: 1cf6e8fc8341 ("tty/serial: at91: fix RTS line management when hardware handshake is enabled")
Cc: stable <stable@vger.kernel.org> # v4.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c