serial: lantiq: add missing interrupt ack
Subsystems (2)
PATCH 1/1 serial: lantiq: add missing interrupt ack
Currently, the error interrupt is never acknowledged, so once active it will stay active indefinitely, causing the handler to be called in an infinite loop.
--- drivers/tty/serial/lantiq.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/lantiq.c +1 -0
@@ -250,6 +250,7 @@ lqasc_err_int(int irq, void *_port)struct ltq_uart_port *ltq_port =to_ltq_uart_port (port);spin_lock_irqsave (<q_port->lock, flags); +__raw_writel (ASC_IRNCR_EIR , port->membase +LTQ_ASC_IRNCR );/* clear any pending interrupts */ asc_update_bits (0 ,ASCWHBSTATE_CLRPE |ASCWHBSTATE_CLRFE |ASCWHBSTATE_CLRROE , port->membase +LTQ_ASC_WHBSTATE );
Signature · 1 line
2.34.1
Quoted 16 lines · Bernhard Seibold
Currently, the error interrupt is never acknowledged, so once active it will stay active indefinitely, causing the handler to be called in an infinite loop.
Fixes 2f0fc4159a6a ("SERIAL: Lantiq: Add driver for MIPS Lantiq SOCs.")Cc <[email protected]>Signed-off-by Bernhard Seibold <[email protected]>--- drivers/tty/serial/lantiq.c | 1 + 1 file changed, 1 insertion(+)drivers/tty/serial/lantiq.c +0
-0
drivers/tty/serial/lantiq.c lqasc_err_int(int irq, void *_port) · line 256
Quoted 7 lines
drivers/tty/serial/lantiq.c +1
-0@@ -250,6 +250,7 @@ lqasc_err_int(int irq, void *_port)struct ltq_uart_port *ltq_port =to_ltq_uart_port (port);spin_lock_irqsave (<q_port->lock, flags); +__raw_writel (ASC_IRNCR_EIR , port->membase +LTQ_ASC_IRNCR );/* clear any pending interrupts */ asc_update_bits (0 ,ASCWHBSTATE_CLRPE |ASCWHBSTATE_CLRFE |ASCWHBSTATE_CLRROE , port->membase +LTQ_ASC_WHBSTATE );
This has been there since the beginning, it is a bit odd if nobody has hit this before now.
Signature · 1 line
i.
Quoted 4 lines
Ilpo Järvinen <[email protected]> hat am 02.06.2023 16:56 CEST geschrieben:
Quoted 8 lines
Quoted 3 lines · Bernhard Seibold
Currently, the error interrupt is never acknowledged, so once active it will stay active indefinitely, causing the handler to be called in an infinite loop.
This has been there since the beginning, it is a bit odd if nobody has hit this before now.
Let's just say this might be related to the fact that no end-user product that contains this peripheral uses the upstream kernel. However this patch does fix a real issue that was observed on real hardware.
patch "serial: lantiq: add missing interrupt ack" added to tty-linus
In reply to Bernhard SeiboldThis is a note to let you know that I've just added the patch titled
serial: lantiq: add missing interrupt ack
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 306320034e8fbe7ee1cc4f5269c55658b4612048 Mon Sep 17 00:00:00 2001
From: Bernhard Seibold <[email protected]>
Date: Fri, 2 Jun 2023 15:30:29 +0200
Subject: serial: lantiq: add missing interrupt ack
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Currently, the error interrupt is never acknowledged, so once active it will stay active indefinitely, causing the handler to be called in an infinite loop.
Message-ID: <[email protected]>
--- drivers/tty/serial/lantiq.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/serial/lantiq.c +1 -0
@@ -250,6 +250,7 @@ lqasc_err_int(int irq, void *_port)struct ltq_uart_port *ltq_port =to_ltq_uart_port (port);spin_lock_irqsave (<q_port->lock, flags); +__raw_writel (ASC_IRNCR_EIR , port->membase +LTQ_ASC_IRNCR );/* clear any pending interrupts */ asc_update_bits (0 ,ASCWHBSTATE_CLRPE |ASCWHBSTATE_CLRFE |ASCWHBSTATE_CLRROE , port->membase +LTQ_ASC_WHBSTATE );
Signature · 1 line
2.41.0