forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
kernel/drivers/tty/serial/pxa.c
....@@ -19,10 +19,6 @@
1919 */
2020
2121
22
-#if defined(CONFIG_SERIAL_PXA_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
23
-#define SUPPORT_SYSRQ
24
-#endif
25
-
2622 #include <linux/ioport.h>
2723 #include <linux/init.h>
2824 #include <linux/console.h>
....@@ -879,6 +875,7 @@
879875 sport->port.dev = &dev->dev;
880876 sport->port.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
881877 sport->port.uartclk = clk_get_rate(sport->clk);
878
+ sport->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_PXA_CONSOLE);
882879
883880 ret = serial_pxa_probe_dt(dev, sport);
884881 if (ret > 0)