OSDN Git Service

tty: serial: fsl_lpuart: set receive watermark for imx8qxp platform
authorSherry Sun <sherry.sun@nxp.com>
Mon, 30 Jan 2023 06:44:45 +0000 (14:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 09:53:39 +0000 (10:53 +0100)
commit7c0105901778500f6d11ddfd99f6efa1987c37a6
tree22df28364472361656d4e9bce079a980554c073e
parent34ebb26f12a84b744f43c5c4869516f122a2dfaa
tty: serial: fsl_lpuart: set receive watermark for imx8qxp platform

Since imx8qxp RX FIFO depth is 64 datawords, it will be better to set
the rx watermark as 31, which means when the number of datawords in the
receive FIFO(>= 32) is greater than the watermark, an interrupt or a DMA
request is generated.
Also keep the console rx watermark as 1 to make sure it responsive.

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