diff options
author | Qipan Li <Qipan.Li@csr.com> | 2014-01-03 15:44:08 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-07 17:09:04 -0800 |
commit | df8d4aa0d84995bf7fb8d8a978a0d67fff6ca53a (patch) | |
tree | 5dfb8739afbfcc49a712fd028f60b3dbd7085a21 /drivers/tty/serial/atmel_serial.c | |
parent | 388faf9ffdaf92c81243514a2dd4c6ce04d28874 (diff) |
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>
Diffstat (limited to 'drivers/tty/serial/atmel_serial.c')
0 files changed, 0 insertions, 0 deletions