serial: imx: only count 0->1 transitions for RNG
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 24 Mar 2016 13:24:23 +0000 (14:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Apr 2016 16:26:55 +0000 (09:26 -0700)
commit9ec8efe94b5c6a797aa5bceca337373d310f9c2c
treee16cc1c80d81d83cfa4005a6415737e283f1d309
parent16804d68bfaa7f5f5a73ab4a016ffeba33e87770
serial: imx: only count 0->1 transitions for RNG

According to tty_ioctl(4) (from man-pages 4.04) the rng member only
counts 0->1 transitions. For the other signals (DSR, CD, CTS) both edges
are supposed to be counted.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c