]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: stm32: Reset .throttled state in .startup()
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 17 Apr 2024 09:03:28 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Apr 2024 15:11:39 +0000 (17:11 +0200)
commit12e9459ddaea698de369701d94e8a941564d773e
treea8515c11279a4694b12436beb2febd5d25a55556
parent9f9be0ec3130066c5c0bd85da260fa96ea46fd6a
serial: stm32: Reset .throttled state in .startup()

commit ea2624b5b829b8f93c0dce25721d835969b34faf upstream.

When an UART is opened that still has .throttled set from a previous
open, the RX interrupt is enabled but the irq handler doesn't consider
it. This easily results in a stuck irq with the effect to occupy the CPU
in a tight loop.

So reset the throttle state in .startup() to ensure that RX irqs are
handled.

Fixes: d1ec8a2eabe9 ("serial: stm32: update throttle and unthrottle ops for dma mode")
Cc: stable@vger.kernel.org
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/a784f80d3414f7db723b2ec66efc56e1ad666cbf.1713344161.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c