From 05e59e5fb0064c97a1c10921ecd549f2d4a58565 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:14:40 +0000
Subject: [PATCH] add REDIRECT

---
 kernel/drivers/tty/serial/8250/8250_ingenic.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/kernel/drivers/tty/serial/8250/8250_ingenic.c b/kernel/drivers/tty/serial/8250/8250_ingenic.c
index bcd26d6..988bf6b 100644
--- a/kernel/drivers/tty/serial/8250/8250_ingenic.c
+++ b/kernel/drivers/tty/serial/8250/8250_ingenic.c
@@ -146,8 +146,6 @@
 
 static void ingenic_uart_serial_out(struct uart_port *p, int offset, int value)
 {
-	unsigned int flags;
-	bool is_console;
 	int ier;
 
 	switch (offset) {
@@ -169,12 +167,7 @@
 		 * If we have enabled modem status IRQs we should enable
 		 * modem mode.
 		 */
-		is_console = uart_console(p);
-		if (is_console)
-			console_atomic_lock(&flags);
 		ier = p->serial_in(p, UART_IER);
-		if (is_console)
-			console_atomic_unlock(flags);
 
 		if (ier & UART_IER_MSI)
 			value |= UART_MCR_MDCE | UART_MCR_FCM;

--
Gitblit v1.6.2