MLK-17005: linux-imx: serial: fsl_lpuart: Clear LOOP mode when requested
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 27 Nov 2017 16:10:11 +0000 (18:10 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:55:45 +0000 (15:55 -0500)
commit7d47ce74a63c98993aff53e19f9d98757b8e351a
treecd7fa1ebf783f189ee5dceb76e4e0e4424fd30d7
parent14dd18ff781768d59cc6f7d65b3371466e314d5f
MLK-17005: linux-imx: serial: fsl_lpuart: Clear LOOP mode when requested

The LOOP mode remained always set after first use.
If the ioctl tiocmset gets called with TIOCMBIC for TIOCM_LOOP,
UARTCTRL_LOOPS needs to be cleared in the LPUART control register.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
drivers/tty/serial/fsl_lpuart.c