Files
linux/drivers
Uwe Kleine-König 57a84887bc serial: imx: setup DCEDTE early and ensure DCD and RI irqs to be off
[ Upstream commit e61c38d85b ]

If the UART is operated in DTE mode and UCR3_DCD or UCR3_RI are 1 (which
is the reset default) and the opposite side pulls the respective line to
its active level the irq triggers after it is requested in .probe.

These irqs were already disabled in .startup but this might be too late.

Also setup of the UFCR_DCEDTE bit (currently done in .set_termios) is
done very late which is critical as it also controls direction of some
pins.

So setup UFCR_DCEDTE earlier (in .probe) and also disable the broken
irqs in DTE mode there before requesting irqs.

Acked-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-22 09:17:49 +01:00
..
2017-12-14 09:28:24 +01:00
2018-03-03 10:23:20 +01:00
2018-02-25 11:05:55 +01:00
2017-09-09 17:39:41 +02:00
2017-12-29 17:42:58 +01:00
2018-02-25 11:05:51 +01:00
2016-09-20 20:57:12 +10:00