diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-04-17 11:03:28 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-04-17 13:26:45 +0200 |
commit | ea2624b5b829b8f93c0dce25721d835969b34faf (patch) | |
tree | 3d8c9b02ebc6fb9a6b29c7500381763001c02317 /fs | |
parent | 13c785323b36b845300b256d0e5963c3727667d7 (diff) | |
download | linux-stable-ea2624b5b829b8f93c0dce25721d835969b34faf.tar.gz linux-stable-ea2624b5b829b8f93c0dce25721d835969b34faf.tar.bz2 linux-stable-ea2624b5b829b8f93c0dce25721d835969b34faf.zip |
serial: stm32: Reset .throttled state in .startup()
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>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions