]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: stm32: add support of timeout interrupt for RX
authorErwan Le Ray <erwan.leray@st.com>
Tue, 18 Jun 2019 10:02:22 +0000 (12:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 09:17:35 +0000 (11:17 +0200)
commit4cc0ed626f2ba36cd008d4b380613f0360133891
treefbc64e514b98a2f0ac42dc85af03643044e7d47e
parent3f2640ed7be838c3f05c0d2b0f7c7508e7431e48
serial: stm32: add support of timeout interrupt for RX

Add support of RX timeout interrupts to limit the number of interrupts.
RX timeout is a number of bits (baud clock cycles) without
transmission seen in the receiver. One character  is used as an arbitrary
RX timeout value.
If parity is enabled, the number of bits has to include parity bit.

Signed-off-by: Gerald Baeza <gerald.baeza@st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h