]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94d5e5685a31fcd2ff4c781a293115a001b10ae6
tree47cba151b70a710c9853c2a62766a1eb41bcc49f
parent3a784368f217b58c6d3e269e4dc5c26f428b0c7a
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