890-8250_optional_sysrq.patch 651 B

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