]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
serial: imx: Fix DCD reading
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 26 Sep 2016 13:55:31 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:06:46 +0000 (12:06 +0200)
commit2229308774bf777bef0288a24cc0ebd43e6e8aa5
treea7ae98b18487e7cc6c247454281f93117f10ade8
parent452063d755094e7604c39acab88083cc188c2c03
serial: imx: Fix DCD reading

commit 4b75f80003617fe35771a9e27022e8fbd6a41875 upstream.

The USR2_DCDIN bit is tested for in register usr1. As the name
suggests the usr2 register should be used instead. This fixes
reading the Carrier detect status.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Fixes: 90ebc4838666 ("serial: imx: repair and complete handshaking")
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c