tty: serial: samsung_tty: loopback mode support
authorChanho Park <chanho61.park@samsung.com>
Wed, 29 Jun 2022 00:41:41 +0000 (09:41 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Jun 2022 15:09:08 +0000 (17:09 +0200)
commit72a43046b61a3fe7164a622224bcdfc3cf6b795d
tree3e0487e215631ae6b6a4b4dd66615257f49931de
parent9636047ffafcf5988946c05f0ebd7e0b2114aa74
tty: serial: samsung_tty: loopback mode support

Internal loopback mode can be supported by setting
UCON register's Loopback Mode bit. The mode & bit can be supported
since s3c2410 and later SoCs. The prefix of LOOPBACK / BIT(5) naming
should be also changed to S3C2410_ in order to avoid confusion.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Link: https://lore.kernel.org/r/20220629004141.51484-1-chanho61.park@samsung.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c
include/linux/serial_s3c.h