]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: always wake up the processes in the TX callback
authorHuang Shijie <b32955@freescale.com>
Wed, 22 Jan 2014 08:23:37 +0000 (16:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 18:18:48 +0000 (10:18 -0800)
commit14dd8df9dd2b6b0e3d2265ba11d3bcebaf17584b
treefef6300f24329e4a3f7a8543a31ee1c40a7e9e54
parent369f31b5235ff578135dd1dc29a636281186d1be
serial: imx: always wake up the processes in the TX callback

The current code only wakes up the processes when the circle
buffer has less data then the WAKEUP_CHARS.

But sometimes, the circle buffer may has data more then the WAKEUP_CHARS,
in such case, the processes will hang.

This patch makes it always wakes up the processes in the TX callback.

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