From 645e752c5a84baeb21015cdc85fc05b7d16312c8 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Sat, 11 May 2024 01:13:52 +0000
Subject: [PATCH] disable i2c1

---
 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