]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: fsl_lpuart: correct the count of break characters
authorSherry Sun <sherry.sun@nxp.com>
Mon, 25 Jul 2022 05:01:15 +0000 (13:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:24:12 +0000 (14:24 +0200)
commit24d4e5b6026cec5fcc6ec01392556998a46ddc93
tree92a7754c6366ec5772b4073865a0cb3fe5d1f77b
parent4b2ce0ea555a788f2216b8b467823f5d4b151684
tty: serial: fsl_lpuart: correct the count of break characters

[ Upstream commit 4a4cd6b2c99e3fc9a912a83dc99c71f7658f39d0 ]

The LPUART can't distinguish between a break signal and a framing error,
so need to count the break characters if there is a framing error and
received data is zero instead of the parity error.

Fixes: ee10bc2bc733 ("serial: fsl_lpuart: handle break and make sysrq work")
Reviewed-by: Michael Walle <michael@walle.cc>
Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20220725050115.12396-1-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/fsl_lpuart.c