From: Janusz Uzycki Date: Fri, 10 Oct 2014 11:13:28 +0000 (+0200) Subject: serial: mxs-auart: add sysrq support X-Git-Tag: firefly_0821_release~176^2~2678^2~156 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=914d3b17e90d9f75f764ffbdbdae354056b9fb79;p=firefly-linux-kernel-4.4.55.git serial: mxs-auart: add sysrq support When using mxs-auart based console, sometime we need the sysrq function to help debugging kernel. The sysrq code is basically there, this patch just simply enable it. Signed-off-by: Janusz Uzycki Reviewed-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c index 10c29334fe2f..0296c1c3b70e 100644 --- a/drivers/tty/serial/mxs-auart.c +++ b/drivers/tty/serial/mxs-auart.c @@ -14,6 +14,10 @@ * http://www.gnu.org/copyleft/gpl.html */ +#if defined(CONFIG_SERIAL_MXS_AUART_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ) +#define SUPPORT_SYSRQ +#endif + #include #include #include