]> git.karo-electronics.de Git - linux-beck.git/commit
serial: sirf: correct condition for fetching dma buffer into tty
authorQipan Li <Qipan.Li@csr.com>
Fri, 3 Jan 2014 07:44:08 +0000 (15:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jan 2014 01:09:04 +0000 (17:09 -0800)
commitdf8d4aa0d84995bf7fb8d8a978a0d67fff6ca53a
tree5dfb8739afbfcc49a712fd028f60b3dbd7085a21
parent388faf9ffdaf92c81243514a2dd4c6ce04d28874
serial: sirf: correct condition for fetching dma buffer into tty

In rx dma-callback it calls tasklet_schedule, if the tasklet
be scheduled after all the dma-callback in the rx dma channel,
current check condition in the tasklet will not do fetch dma
buffer into tty because tx_issued is equal with tx_completed,
so as timeout tasklet does.

so we check whether we should fetch the whole dma buffer into
tty according to the status of transactions in rx dma channel.

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