]> git.dujemihanovic.xyz Git - linux.git/commit
tty: serial: samsung: Fix serial rx on Apple A7-A9
authorNick Chan <towinchenmi@gmail.com>
Wed, 11 Sep 2024 05:02:13 +0000 (13:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Sep 2024 13:47:13 +0000 (15:47 +0200)
commit5ed771f174726ae879945d4f148a9005ac909cb7
tree2ca69d011a23fed36b61de24d7f24909bfc73dfc
parent86d4ac2c0c31649f73bcbb424f9e1fb68c07cd60
tty: serial: samsung: Fix serial rx on Apple A7-A9

Apple's older A7-A9 SoCs seems to use bit 3 in UTRSTAT as RXTO, which is
enabled by bit 11 in UCON.

Access these bits in addition to the original RXTO and RXTO enable bits,
to allow serial rx to function on A7-A9 SoCs. This change does not
appear to affect the A10 SoC and up.

Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Nick Chan <towinchenmi@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20240911050741.14477-4-towinchenmi@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c
include/linux/serial_s3c.h