]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: mxs-auart: fix gpio change detection on interrupt
authorJanusz Uzycki <j.uzycki@elproma.com.pl>
Fri, 14 Nov 2014 22:24:33 +0000 (23:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 01:06:39 +0000 (17:06 -0800)
commit08f937f4bcbe156773834935018c9bf7874a42f3
tree77613195d9f73a5a740e8115eea2584ada59505e
parentf3006e44dd3dc0f2d0ce636585ed95d5b4ad6f35
serial: mxs-auart: fix gpio change detection on interrupt

mxs_auart_modem_status() did't detect gpio's state change
because s->mctrl_prev was modified before by mctrl_gpio_get().
The patch introduces mctrl_temp variable to fix the bug.

Signed-off-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c