]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.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)
committerKamal Mostafa <kamal@canonical.com>
Fri, 10 Jun 2016 13:32:25 +0000 (06:32 -0700)
commit76fb25c1664f48583097ac9a5307d3f8c3791e41
tree027dcb6adcee29543bdea705c2130e298ecd64d8
parent28dd817a0cc5ca549c447de28f144574f730c2f2
tty/serial: atmel: fix hardware handshake selection

BugLink: http://bugs.launchpad.net/bugs/1588945
commit 5be605ac9af979265d7b64c160ad9928088a78be upstream.

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")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/tty/serial/atmel_serial.c