From: Qipan Li Date: Fri, 3 Jan 2014 07:44:08 +0000 (+0800) Subject: serial: sirf: correct condition for fetching dma buffer into tty X-Git-Tag: v3.14-rc1~149^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df8d4aa0d84995bf7fb8d8a978a0d67fff6ca53a;p=pandora-kernel.git 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 Signed-off-by: Barry Song Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed