[SRU][R][Unstable][PATCH 02/12] UBUNTU: SAUCE: Reapply "serial: 8250: Revert "drop lockdep annotation from serial8250_clear_IER()""

Kevin Becker kevin.becker at canonical.com
Fri Mar 6 18:50:53 UTC 2026


From: Sebastian Andrzej Siewior <bigeasy at linutronix.de>

BugLink: https://bugs.launchpad.net/bugs/2143181

This reverts commit 244eb5c6ec62ccab59ecac1f4815bb33130c423a.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy at linutronix.de>
Signed-off-by: Kevin Becker <kevin.becker at canonical.com>
---
 drivers/tty/serial/8250/8250_port.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c
index 68aea85cccd8..82f544fc301b 100644
--- a/drivers/tty/serial/8250/8250_port.c
+++ b/drivers/tty/serial/8250/8250_port.c
@@ -721,6 +721,9 @@ static void __serial8250_clear_IER(struct uart_8250_port *up)
 
 static inline void serial8250_clear_IER(struct uart_8250_port *up)
 {
+	/* Port locked to synchronize UART_IER access against the console */
+	lockdep_assert_held_once(&up->port.lock);
+
 	__serial8250_clear_IER(up);
 }
 
-- 
2.43.0




More information about the kernel-team mailing list