summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/stm32-usart.h
diff options
context:
space:
mode:
authorErwan Le Ray <erwan.leray@foss.st.com>2021-10-20 17:03:30 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-21 10:36:29 +0200
commitcc58d0a3f0a4755b9c808e065d9227c6e984e7db (patch)
treee87aaf29a10ebc4828e39579c3ce3bc137a3348c /drivers/tty/serial/stm32-usart.h
parent9db81eca10ba2d84177fa076704db3a5d76863c3 (diff)
downloadlinux-cc58d0a3f0a4755b9c808e065d9227c6e984e7db.tar.gz
linux-cc58d0a3f0a4755b9c808e065d9227c6e984e7db.tar.bz2
linux-cc58d0a3f0a4755b9c808e065d9227c6e984e7db.zip
serial: stm32: re-introduce an irq flag condition in usart_receive_chars
Re-introduce an irq flag condition in usart_receive_chars. This condition has been deleted by commit 75f4e830fa9c ("serial: do not restore interrupt state in sysrq helper"). This code was present to handle threaded case, and has been removed because it is no more needed in this case. Nevertheless an irq safe lock is still needed in some cases, when DMA should be stopped to receive errors or breaks in PIO mode. This patch is a precursor to the complete rework or stm32 serial driver DMA implementation. Signed-off-by: Erwan Le Ray <erwan.leray@foss.st.com> Link: https://lore.kernel.org/r/20211020150332.10214-2-erwan.leray@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/stm32-usart.h')
0 files changed, 0 insertions, 0 deletions