]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a7b6a3a4c8989b44bd15c78dbe1f391f61fb864
tree3e0487e215631ae6b6a4b4dd66615257f49931de
parent5a80c81f8d3658cb64d5cccfcb860dee96dcc1a5
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