]> 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>
Thu, 28 Jul 2022 08:35:32 +0000 (10:35 +0200)
commit4a4cd6b2c99e3fc9a912a83dc99c71f7658f39d0
treea7c487235c727a0db134f7ca84d51d8ef09528d7
parent40fcc6c17c40426a9e87a5a18dbc726771ebe074
tty: serial: fsl_lpuart: correct the count of break characters

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>
drivers/tty/serial/fsl_lpuart.c