serial: sirf: fix endless loop bug in uart receive tasklet
authorQipan Li <Qipan.Li@csr.com>
Thu, 14 May 2015 06:45:23 +0000 (06:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:50:41 +0000 (12:50 -0700)
commit36c0991089ef190ee5e3f72e1346c623b24a0e7d
treee7c0e097d16ac2bd72186c9dc5e1566ef6929f78
parenteab192ae56fd52416af485e3d7ba2c6982200d71
serial: sirf: fix endless loop bug in uart receive tasklet

In special condition, when cpu schedule into rx_tmo_process_tl or
rx_dma_complete_tl and all the receive dma tasks have done, it will
go into endless loop because no dma task cookie status be changed.

Signed-off-by: Qipan Li <Qipan.Li@csr.com>
Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sirfsoc_uart.c