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)
commit422c6d3b09afb187b5aeedc3a99d759703023be0
tree6acd6145dcf8d035190c6dc37c133387ce05d53b
parent67e977f32461f70c2b838d43107ff128f595485c
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