serial: fsl_lpuart: add sysrq support when using dma
authorAngelo Dureghello <angelo.dureghello@timesys.com>
Sun, 4 Oct 2020 16:11:44 +0000 (18:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Oct 2020 11:32:30 +0000 (13:32 +0200)
commitf4eef224a09f4ea4344211dabfb875dd865df479
tree47cba151b70a710c9853c2a62766a1eb41bcc49f
parentbfeb28539d1f61829232883ced0986569218c4de
serial: fsl_lpuart: add sysrq support when using dma

Add handling of magic sysrq keys when using dma/edma.

Tested by sending BREAK followed by a sysrq command inside
a 5 secs time window, by:

echo 1 > /proc/sys/kernel/sysrq

BREAK + h, t, e, b, c

Tested also sending a command after 5 secs after BREAK, that's
properly ignored.

Signed-off-by: Angelo Dureghello <angelo.dureghello@timesys.com>
Link: https://lore.kernel.org/r/20201004161144.1307174-1-angelo.dureghello@timesys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c