tty: serial: fsl_lpuart: only enable Idle Line Interrupt for non-dma case
authorSherry Sun <sherry.sun@nxp.com>
Fri, 25 Nov 2022 10:19:51 +0000 (18:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 14:05:33 +0000 (15:05 +0100)
commite1d91dda0bd1b96c10ea5d85fee94021c70dd55b
tree3c65880f15ba9c8e77798be2720c6b44c4b224b4
parent7370a25f9315e732ab7538d6c7e85208176d8fa2
tty: serial: fsl_lpuart: only enable Idle Line Interrupt for non-dma case

For the lpuart driver, the Idle Line Interrupt Enable now is only needed
for the CPU mode, so enable the UARTCTRL_ILIE at the correct place, and
clear it when shutdown.

Also need to configure the suitable UARTCTRL_IDLECFG, now the value is
0x7, represent 128 idle characters will trigger the Idle Line Interrupt.

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