serial: xuartps: Enable uart loopback mode
authorYasir-Khan <yasir_khan@mentor.com>
Mon, 23 Jan 2017 12:26:08 +0000 (13:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jan 2017 10:08:30 +0000 (11:08 +0100)
commit5935a2b3a57c03d7e6fea967ef0b926f82fc995e
treed74704e4c815abe54c7cb0ce3312b2fbc8e376b8
parentaa75941ca1de08e876ec21f7eaf390a5de62519f
serial: xuartps: Enable uart loopback mode

This patch adds xilinx uart loopback support by modifying the
cdns_uart_set_mctrl function to handle the switch to loopback mode.
After this patch, the loopback mode can be enabled/disabled by
setting/clearing the TIOCM_LOOP modem bit via TIOCMBIS/TIOCMBIC
ioctls respectively.

Signed-off-by: Yasir-Khan <yasir_khan@mentor.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/xilinx_uartps.c