patch "serial: sprd: Add clearing break interrupt operation" added to tty-linus
This is a note to let you know that I've just added the patch titled
serial: sprd: Add clearing break interrupt operation
to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
From abeb2e9414d7e3a0d8417bc3b13d7172513ea8a0 Mon Sep 17 00:00:00 2001
From: Yonghan Ye <[email protected]>
Date: Wed, 4 Dec 2019 20:00:07 +0800
Subject: serial: sprd: Add clearing break interrupt operation
A break interrupt will be generated if the RX line was pulled low, which means some abnomal behaviors occurred of the UART. In this case, we still need to clear this break interrupt status, otherwise it will cause irq storm to crash the whole system.
--- drivers/tty/serial/sprd_serial.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/tty/serial/sprd_serial.c +3 -0
@@ -679,6 +679,9 @@ static irqreturn_t sprd_handle_irq(int irq, void *dev_id)if (ims &SPRD_IMSR_TIMEOUT )serial_out (port,SPRD_ICLR ,SPRD_ICLR_TIMEOUT ); +if (ims &SPRD_IMSR_BREAK_DETECT ) +serial_out (port,SPRD_ICLR ,SPRD_IMSR_BREAK_DETECT ); +if (ims & (SPRD_IMSR_RX_FIFO_FULL |SPRD_IMSR_BREAK_DETECT |SPRD_IMSR_TIMEOUT ))sprd_rx (port);
Signature · 1 line
2.24.1