forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/pnx8xxx_uart.c
....@@ -10,10 +10,6 @@
1010 * Copyright (C) 2000 Deep Blue Solutions Ltd.
1111 */
1212
13
-#if defined(CONFIG_SERIAL_PNX8XXX_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
14
-#define SUPPORT_SYSRQ
15
-#endif
16
-
1713 #include <linux/module.h>
1814 #include <linux/ioport.h>
1915 #include <linux/init.h>
....@@ -220,9 +216,7 @@
220216 else if (status & FIFO_TO_SM(PNX8XXX_UART_FIFO_RXFE))
221217 flg = TTY_FRAME;
222218
223
-#ifdef SUPPORT_SYSRQ
224219 sport->port.sysrq = 0;
225
-#endif
226220 }
227221
228222 if (uart_handle_sysrq_char(&sport->port, ch))
....@@ -800,6 +794,7 @@
800794 if (pnx8xxx_ports[i].port.mapbase != res->start)
801795 continue;
802796
797
+ pnx8xxx_ports[i].port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_PNX8XXX_CONSOLE);
803798 pnx8xxx_ports[i].port.dev = &pdev->dev;
804799 uart_add_one_port(&pnx8xxx_reg, &pnx8xxx_ports[i].port);
805800 platform_set_drvdata(pdev, &pnx8xxx_ports[i]);