serial: imx: change the wait even to interruptiable
authorHuang Shijie <shijie8@gmail.com>
Fri, 19 Sep 2014 07:42:57 +0000 (15:42 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:26:38 +0000 (21:26 -0400)
commita4688bcd34bd2f4fe7fb88856c85d3091270ab53
tree6e62880c92f034c22abe46c5a5e8d3cc5faf2c8e
parent45564a6656b4944fa90aabd59f8ec082e8f7a969
serial: imx: change the wait even to interruptiable

The wait_event() makes the application hang for ever in the following case:
 [1] the hardware flow control is enabled.
 [2] the other end (or the remote end) is terminated, and the TX is still
     waiting for the hardware flow control signal to become asserted.

This patch fixes it by changing the wait_event to wait_event_interruptible.

Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c