Re: [PATCH 2/2] dma: calculate the data tranferred by 8250

2013-10-11 Thread Greg KH
On Fri, Oct 11, 2013 at 05:42:18PM -0400, Youquan Song wrote: > When using UART transfers data by DMA mode, but it always shows 0 at > /sys/class/dma/dma0chan*/bytes_transferred. > > Call the new function to calculate how many the data has been transferred > after doing it by DMA mode. How nic

[PATCH 2/2] dma: calculate the data tranferred by 8250

2013-10-11 Thread Youquan Song
When using UART transfers data by DMA mode, but it always shows 0 at /sys/class/dma/dma0chan*/bytes_transferred. Call the new function to calculate how many the data has been transferred after doing it by DMA mode. Signed-off-by: Youquan Song --- drivers/tty/serial/8250/8250_dma.c |2 +-