tty: serial: fsl_lpuart: Enable Receiver Idle Empty function for LPUART
authorSherry Sun <sherry.sun@nxp.com>
Mon, 30 Jan 2023 06:44:47 +0000 (14:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:53:39 +0000 (10:53 +0100)
commit96f54fd4894711b0dce6a1c8c26c882295dc9234
treed4529116977d3f84bad6aa2053d8d6354577e45a
parent9ad9df8447547febe9dd09b040f4528a09e495f0
tty: serial: fsl_lpuart: Enable Receiver Idle Empty function for LPUART

With the growth of rx watermark, it's useful to enable the Receiver Idle
Empty function, it can assert the RDRF(Receive Data Register Full Flag)
when the receiver is idle for a number of idle characters and the FIFO
is not empty. It will generate a DMA request or interrupt, which can
avoid receive data being trapped in the RX FIFO since the number of
words received is less than the watermark.

Here set the RXIDEN as 0x3 which enable the RDRF assertion due to
partially filled FIFO when receiver is idle for 4 characters.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20230130064449.9564-5-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c