imx: serial_mxc: disable ri and dcd irq in dte mode
authorMax Krummenacher <max.krummenacher@toradex.com>
Fri, 1 Feb 2019 15:04:50 +0000 (16:04 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 15 Feb 2019 21:01:15 +0000 (22:01 +0100)
commita24532083c78fd599807e0af58410a5b406330b5
treef8ee364f8ed78d5e8ead6abff6fe6b0e1b16c3a0
parent63c918d188ee54f517cbadeeeb76846e8c8a9821
imx: serial_mxc: disable ri and dcd irq in dte mode

If the UART is used in DTE mode the RI and DCD bits in UCR3 become
irq enable bits. Both are set to enabled after reset and both likely
are pending.

Disable the bits to prevent an interrupt storm when Linux enables
the UART interrupts.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
drivers/serial/serial_mxc.c