serial: sh-sci: Fix exclusion of work_fn_rx and sci_dma_rx_complete
authorKazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Fri, 21 Aug 2015 18:02:49 +0000 (20:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 16:33:48 +0000 (17:33 +0100)
commit0907c1004f9bbe5bda0d3d2be46520b729de5c1d
tree095421f52f255dca2da0d4fcdd4598900f1fd14a
parent47aceb927fffa77b0328b6fde846a6b2182dad01
serial: sh-sci: Fix exclusion of work_fn_rx and sci_dma_rx_complete

There is a problem when the sci_dma_rx_complete() is processed
before cancel process of work_fn_rx() completes by rx_timer_fn().
This patch locks work_fn_rx().

Signed-off-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c