]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: fix break handling for sysrq
authorUlrich Hecht <uli+renesas@fpond.eu>
Mon, 16 Aug 2021 16:22:01 +0000 (18:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Aug 2021 16:53:40 +0000 (18:53 +0200)
commit87b8061bad9bd4b549b2daf36ffbaa57be2789a2
tree1565372a1fae10c7efdc8949acef3e80bea66e94
parent3d881e32e295decbc86f5d920bedae929be5bfb0
serial: sh-sci: fix break handling for sysrq

This fixes two issues that cause the sysrq sequence to be inadvertently
aborted on SCIF serial consoles:

- a NUL character remains in the RX queue after a break has been detected,
  which is then passed on to uart_handle_sysrq_char()
- the break interrupt is handled twice on controllers with multiplexed ERI
  and BRI interrupts

Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
Link: https://lore.kernel.org/r/20210816162201.28801-1-uli+renesas@fpond.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c