summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2013-06-14 14:11:17 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-17 23:49:43 +0400
commitfcd2bb9b5d64d115b4433ddff9fb3289dd9597a2 (patch)
tree7f787e7d9cd03360eab7dc4d63bad597adf79623 /drivers
parentbf32d52c455d933cc9a459bb94af9ea8b5850af9 (diff)
downloadlinux-fcd2bb9b5d64d115b4433ddff9fb3289dd9597a2.tar.xz
serial: mfd: Add sysrq support
When using MFD HSU 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: Feng Tang <feng.tang@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/tty/serial/mfd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c
index 5f4765a7a5c5..e266eca0ec76 100644
--- a/drivers/tty/serial/mfd.c
+++ b/drivers/tty/serial/mfd.c
@@ -21,6 +21,10 @@
* be triggered
*/
+#if defined(CONFIG_SERIAL_MFD_HSU_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#define SUPPORT_SYSRQ
+#endif
+
#include <linux/module.h>
#include <linux/init.h>
#include <linux/console.h>