]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6338e5340cb91162b7bc5b670eed089801c79c0
treed74704e4c815abe54c7cb0ce3312b2fbc8e376b8
parentb509ad793b659eff7955ccbb3bd607b3affde7c3
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