[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1381527738-9339-1-git-send-email-youquan.song@intel.com>
Date: Fri, 11 Oct 2013 17:42:16 -0400
From: Youquan Song <youquan.song@...el.com>
To: dan.j.williams@...el.com, vinod.koul@...el.com,
gregkh@...uxfoundation.org
Cc: andriy.shevchenko@...el.com, mika.westerberg@...el.com,
linux-kernel@...r.kernel.org,
Youquan Song <youquan.song@...ux.intel.com>,
Youquan Song <youquan.song@...el.com>
Subject: DMA: Calculate how many data transferred by DMA
Currently, the DMA channel calculates its data transferred only at network
device driver. When other devices like UART or SPI etc, transfers data by DMA
mode, but it always shows 0 at /sys/class/dma/dma0chan*/bytes_transferred.
It will possibly mislead user that the DMA engine does not work.
This patch add a new function which will calculate how many the data has been
transferred after doing it by DMA mode. It can be used by other modules and
also simplify current duplicated code.
Add the interface when UART transfer data by Designware DMA engine. It will
calculate the data already tranferred in the DMA channel.
If the patch work, I will add the interface to other modules when needed.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists