Skip to content

Commit a82c3df

Browse files
rhodaszigregkh
authored andcommitted
tty: serial: fsl_lpuart: reduce RX watermark to 0 on LS1028A
LS1028A is using DMA with LPUART. Having RX watermark set to 1, means DMA transactions are started only after receiving the second character. On other platforms with newer LPUART IP, Receiver Idle Empty function initiates the DMA request after the receiver is idling for 4 characters. But this feature is missing on LS1028A, which is causing a 1-character delay in the RX direction on this platform. Set RX watermark to 0 to initiate RX DMA after each character. Link: https://lore.kernel.org/linux-serial/[email protected]/ Fixes: 9ad9df8 ("tty: serial: fsl_lpuart: Fix the wrong RXWATER setting for rx dma case") Cc: stable <[email protected]> Signed-off-by: Robert Hodaszi <[email protected]> Message-ID: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3063200 commit a82c3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/fsl_lpuart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static const struct lpuart_soc_data ls1021a_data = {
310310
static const struct lpuart_soc_data ls1028a_data = {
311311
.devtype = LS1028A_LPUART,
312312
.iotype = UPIO_MEM32,
313-
.rx_watermark = 1,
313+
.rx_watermark = 0,
314314
};
315315

316316
static struct lpuart_soc_data imx7ulp_data = {

0 commit comments

Comments
 (0)