OSDN Git Service

tty: serial: fsl_lpuart: set RTS watermark for lpuart
authorSherry Sun <sherry.sun@nxp.com>
Mon, 30 Jan 2023 06:44:48 +0000 (14:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:53:39 +0000 (10:53 +0100)
commitecba98f9ddf426af337fb8b63d7581c254fe6e87
tree24f67b87cab8a2bc7dcae3a6b993c14b35dc7e95
parent96f54fd4894711b0dce6a1c8c26c882295dc9234
tty: serial: fsl_lpuart: set RTS watermark for lpuart

Add RTS watermark support for LPUART. The RX RTS_B output negates when
the number of empty words in the receive FIFO is greater or equal to
RTSWATER. Here set the RTSWATER to half of the rxfifo_size.

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