Skip to contentSkip to conversation

sh-sci: SysRq support on EARLYCON

PATCH In review Yoshinori Sato 2 participants 2 messages Apr 27, 2016 – May 25, 2016

Subsystems (2)
lore
Share & tools
lore

Yoshinori Sato

author maintainer
#0 lore raw

PATCH 1/1 sh-sci: SysRq support on EARLYCON

Add missing flag condition.

---
 drivers/tty/serial/sh-sci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/tty/serial/sh-sci.c +3 -1
index 0130feb..5a73620 100644
@@ -18,7 +18,9 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  */
-#if defined(CONFIG_SERIAL_SH_SCI_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#if (defined(CONFIG_SERIAL_SH_SCI_CONSOLE) || \
+     defined(CONFIG_SERIAL_SH_SCI_EARLYCON)) && \
+	defined(CONFIG_MAGIC_SYSRQ)
 #define SUPPORT_SYSRQ
 #endif
 
Signature · 1 line
2.7.0
Acked-by on v1 1/1
#1 lore raw

Hi Sato-san,

CC linux-serial

Quoted 3 lines · Yoshinori Sato

Add missing flag condition.

Unfortunately magic SysRq only works if CONFIG_SERIAL_SH_SCI_DMA=n.

Quoted 9 lines
---
 drivers/tty/serial/sh-sci.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/tty/serial/sh-sci.c +0 -0
index 0130feb..5a73620 100644

drivers/tty/serial/sh-sci.c line 25

Quoted 9 lines
drivers/tty/serial/sh-sci.c +3 -1
@@ -18,7 +18,9 @@
  * License.  See the file "COPYING" in the main directory of this archive
  * for more details.
  */
-#if defined(CONFIG_SERIAL_SH_SCI_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
+#if (defined(CONFIG_SERIAL_SH_SCI_CONSOLE) || \
+     defined(CONFIG_SERIAL_SH_SCI_EARLYCON)) && \
+       defined(CONFIG_MAGIC_SYSRQ)
 #define SUPPORT_SYSRQ
 #endif

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds