890-8250_optional_sysrq.patch 623 B

123456789101112131415161718192021222324
  1. --- a/drivers/tty/serial/8250/Kconfig
  2. +++ b/drivers/tty/serial/8250/Kconfig
  3. @@ -74,6 +74,10 @@ config SERIAL_8250_CONSOLE
  4. If unsure, say N.
  5. +config SERIAL_8250_SYSRQ
  6. + bool "Magic sysrq support on 8250/16550 devices"
  7. + depends on SERIAL_8250_CONSOLE
  8. +
  9. config FIX_EARLYCON_MEM
  10. bool
  11. depends on X86
  12. --- a/drivers/tty/serial/8250/8250.c
  13. +++ b/drivers/tty/serial/8250/8250.c
  14. @@ -16,7 +16,7 @@
  15. * membase is an 'ioremapped' cookie.
  16. */
  17. -#if defined(CONFIG_SERIAL_8250_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
  18. +#if defined(CONFIG_SERIAL_8250_SYSRQ) && defined(CONFIG_MAGIC_SYSRQ)
  19. #define SUPPORT_SYSRQ
  20. #endif