Patch "serial: imx: Fix DCD reading" has been added to the 4.8-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
serial: imx: Fix DCD reading
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
serial-imx-fix-dcd-reading.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
4b75f80003617fe35771a9e27022e8fbd6a41875Mon Sep 17 00:00:00 2001
From: Sascha Hauer <[email protected]>
Date: Mon, 26 Sep 2016 15:55:31 +0200
Subject: serial: imx: Fix DCD reading
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Sascha Hauer <[email protected]>
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.
--- drivers/tty/serial/imx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/tty/serial/imx.c +2 -1
@@ -740,12 +740,13 @@ static unsigned int imx_get_hwmctrl(stru {unsigned int tmp =TIOCM_DSR ;unsigned usr1 =readl (sport->port.membase +USR1 ); +unsigned usr2 =readl (sport->port.membase +USR2 );if (usr1 &USR1_RTSS ) tmp |=TIOCM_CTS ;/* in DCE mode DCDIN is always 0 */ -if (!(usr1 &USR2_DCDIN )) +if (!(usr2 &USR2_DCDIN )) tmp |=TIOCM_CAR ;if (sport->dte_mode)
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/serial-imx-fix-dcd-reading.patch