> -----Original Message----- > From: Robert Hodaszi <robert.hodaszi@xxxxxxxx> > Sent: 2023年6月8日 17:36 > To: Sherry Sun <sherry.sun@xxxxxxx>; gregkh@xxxxxxxxxxxxxxxxxxx; > jirislaby@xxxxxxxxxx; linux-serial@xxxxxxxxxxxxxxx > Subject: Re: [PATCH] Revert "tty: serial: fsl_lpuart: Fix the wrong RXWATER > setting for rx dma case" > > On 2023. 06. 08. 4:20, Sherry Sun wrote: > > Hi Robert, > > I understand your concern, fortunately, LPUART IP provides the Receiver > Idle Empty function, which can avoid the receive data being trapped in the RX > FIFO. For more details you can check my patch below. > > > Hi, > > Although I can see RXIDEN in the i.MX8 RM, it's not in LS1028A's LPUART FIFO > register. Seems not all LPUART IPs have this. > Oh, maybe LS1028 use the old IP version LPUART. If this is the case, I suggest that you can set the rx_watermark of ls1028 to 0. static const struct lpuart_soc_data ls1028a_data = { .devtype = LS1028A_LPUART, .iotype = UPIO_MEM32, .rx_watermark = 0, }; Best Regards Sherry