Home
last modified time | relevance | path

Searched hist:d0a6a7bcc3fa0e97efce1d9a5c4cca6f3474c6bb (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Dstm32-usart.hdiff d0a6a7bcc3fa0e97efce1d9a5c4cca6f3474c6bb Tue Jun 18 05:02:25 CDT 2019 Erwan Le Ray <erwan.leray@st.com> serial: stm32: add support of RX FIFO threshold

Adds the support of RX FIFO threshold in order to improve the RX FIFO
management.
This is done by enabling fifo threshold interrupt, instead of relying
on rx empty/fifo not full irq. That basically generates one irq/char
currently. With this patch:
- RXCFG is set to half fifo size (e.g. 16/2 = 8 data for a 16 data depth
FIFO)
- irq rate may be reduced by up to 1/RXCFG, e.g. 1 over 8 with current
RXCFG setting.
- Receiver timeout is used to gather chars when FIFO threshold isn't
reached.

Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
H A Dstm32-usart.cdiff d0a6a7bcc3fa0e97efce1d9a5c4cca6f3474c6bb Tue Jun 18 05:02:25 CDT 2019 Erwan Le Ray <erwan.leray@st.com> serial: stm32: add support of RX FIFO threshold

Adds the support of RX FIFO threshold in order to improve the RX FIFO
management.
This is done by enabling fifo threshold interrupt, instead of relying
on rx empty/fifo not full irq. That basically generates one irq/char
currently. With this patch:
- RXCFG is set to half fifo size (e.g. 16/2 = 8 data for a 16 data depth
FIFO)
- irq rate may be reduced by up to 1/RXCFG, e.g. 1 over 8 with current
RXCFG setting.
- Receiver timeout is used to gather chars when FIFO threshold isn't
reached.

Signed-off-by: Erwan Le Ray <erwan.leray@st.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>