First git repo commit for the libreCMC project
[librecmc/librecmc.git] / target / linux / generic / patches-4.4 / 890-uart_optional_sysrq.patch
1 --- a/lib/Kconfig.debug
2 +++ b/lib/Kconfig.debug
3 @@ -382,6 +382,11 @@ config MAGIC_SYSRQ_DEFAULT_ENABLE
4           This may be set to 1 or 0 to enable or disable them all, or
5           to a bitmask as described in Documentation/sysrq.txt.
6  
7 +config MAGIC_SYSRQ_SERIAL
8 +       bool "Enable magic SysRq key over serial"
9 +       depends on MAGIC_SYSRQ
10 +       default y
11 +
12  config DEBUG_KERNEL
13         bool "Kernel debugging"
14         help
15 --- a/include/linux/serial_core.h
16 +++ b/include/linux/serial_core.h
17 @@ -426,7 +426,7 @@ extern void uart_handle_cts_change(struc
18  extern void uart_insert_char(struct uart_port *port, unsigned int status,
19                  unsigned int overrun, unsigned int ch, unsigned int flag);
20  
21 -#ifdef SUPPORT_SYSRQ
22 +#if defined(SUPPORT_SYSRQ) && defined(CONFIG_MAGIC_SYSRQ_SERIAL)
23  static inline int
24  uart_handle_sysrq_char(struct uart_port *port, unsigned int ch)
25  {