serial: fsl_lpuart: handle break and make sysrq work
authorMichael Walle <michael@walle.cc>
Wed, 12 May 2021 14:12:51 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 May 2021 14:08:26 +0000 (16:08 +0200)
commit5541a9bacfe54fb2038531fb276724fcec6c29c4
treeb76602d56db9ed0bcd83eb1dc8b021779efc4faa
parent5697df7322fe0a95e56393f63ca8e0f256be92f9
serial: fsl_lpuart: handle break and make sysrq work

Although there is already sysrq characters handling, a break condition
was never detected. Add support for it.

The LPUART can't distinguish between a framing error and a break
condition. We assume it is a break if the received data is all zero.

Signed-off-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20210512141255.18277-6-michael@walle.cc
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c