]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: ensure UCR3 and UFCR are setup correctly
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 24 May 2017 19:38:46 +0000 (21:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 12:35:53 +0000 (14:35 +0200)
commit38c6be2829cb2ec8b4e17fd74778c4fd98fb5b9c
tree4cd135416b95cf7a0239629624c440c35997c222
parent539de750b6704598f1718cb47263039c1ffd690b
serial: imx: ensure UCR3 and UFCR are setup correctly

Commit 4af685b3ee8f ("serial: imx: setup DCEDTE early and ensure DCD and
RI irqs to be off") has a flaw: While UCR3 and UFCR were modified using
read-modify-write before it switched to write register values
independent of the previous state. That's a good idea in principle (and
that's why I did it) but needs more care.

This patch reinstates read-modify-write for UFCR and for UCR3 ensures
that RXDMUXSEL and ADNIMP are set for post imx1.

Fixes: 4af685b3ee8f ("serial: imx: setup DCEDTE early and ensure DCD and RI irqs to be off")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Mika Penttilä <mika.penttila@nextfour.com>
Tested-by: Mika Penttilä <mika.penttila@nextfour.com>
Acked-by: Steve Twiss <stwiss.opensource@diasemi.com>
Tested-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c