]> git.baikalelectronics.ru Git - kernel.git/commit
serial: xilinx_uartps: Let get_mctrl return status
authorMaarten Brock <m.brock@vanmierlo.com>
Mon, 25 Nov 2019 13:15:29 +0000 (18:45 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 13:34:04 +0000 (14:34 +0100)
commitbd7042fb804b6da8fe84d334be7f680e5fad22de
tree6acd6145dcf8d035190c6dc37c133387ce05d53b
parent930af4458b93a132953cdd67860f7a399780d7e5
serial: xilinx_uartps: Let get_mctrl return status

Some of the applications like microcom do not work if
modem is disabled. To fix them we always return
TIOCM_CTS | TIOCM_DSR | TIOCM_CAR instead of 0 when
using cts_override. Make get_mctrl return actual status
when not using cts_override.

Signed-off-by: Maarten Brock <m.brock@vanmierlo.com>
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Link: https://lore.kernel.org/r/1574687731-21563-1-git-send-email-shubhrajyoti.datta@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c