hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/tty/serial/efm32-uart.c
....@@ -1,8 +1,4 @@
11 // SPDX-License-Identifier: GPL-2.0
2
-#if defined(CONFIG_SERIAL_EFM32_UART_CONSOLE) && defined(CONFIG_MAGIC_SYSRQ)
3
-#define SUPPORT_SYSRQ
4
-#endif
5
-
62 #include <linux/kernel.h>
73 #include <linux/module.h>
84 #include <linux/io.h>
....@@ -204,7 +200,7 @@
204200 /*
205201 * This is a reserved bit and I only saw it read as 0. But to be
206202 * sure not to be confused too much by new devices adhere to the
207
- * warning in the reference manual that reserverd bits might
203
+ * warning in the reference manual that reserved bits might
208204 * read as 1 in the future.
209205 */
210206 rxdata &= ~SW_UARTn_RXDATAX_BERR;
....@@ -748,6 +744,7 @@
748744 efm_port->port.type = PORT_EFMUART;
749745 efm_port->port.iotype = UPIO_MEM32;
750746 efm_port->port.fifosize = 2;
747
+ efm_port->port.has_sysrq = IS_ENABLED(CONFIG_SERIAL_EFM32_UART_CONSOLE);
751748 efm_port->port.ops = &efm32_uart_pops;
752749 efm_port->port.flags = UPF_BOOT_AUTOCONF;
753750