From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/tty/serial/8250/8250_mtk.c |   29 ++---------------------------
 1 files changed, 2 insertions(+), 27 deletions(-)

diff --git a/kernel/drivers/tty/serial/8250/8250_mtk.c b/kernel/drivers/tty/serial/8250/8250_mtk.c
index d246f27..de48a58 100644
--- a/kernel/drivers/tty/serial/8250/8250_mtk.c
+++ b/kernel/drivers/tty/serial/8250/8250_mtk.c
@@ -222,37 +222,12 @@
 
 static void mtk8250_disable_intrs(struct uart_8250_port *up, int mask)
 {
-	struct uart_port *port = &up->port;
-	unsigned int flags;
-	unsigned int ier;
-	bool is_console;
-
-	is_console = uart_console(port);
-
-	if (is_console)
-		console_atomic_lock(&flags);
-
-	ier = serial_in(up, UART_IER);
-	serial_out(up, UART_IER, ier & (~mask));
-
-	if (is_console)
-		console_atomic_unlock(flags);
+	serial_out(up, UART_IER, serial_in(up, UART_IER) & (~mask));
 }
 
 static void mtk8250_enable_intrs(struct uart_8250_port *up, int mask)
 {
-	struct uart_port *port = &up->port;
-	unsigned int flags;
-	unsigned int ier;
-
-	if (uart_console(port))
-		console_atomic_lock(&flags);
-
-	ier = serial_in(up, UART_IER);
-	serial_out(up, UART_IER, ier | mask);
-
-	if (uart_console(port))
-		console_atomic_unlock(flags);
+	serial_out(up, UART_IER, serial_in(up, UART_IER) | mask);
 }
 
 static void mtk8250_set_flow_ctrl(struct uart_8250_port *up, int mode)

--
Gitblit v1.6.2