aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/sirf-dma.c
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2011-12-02 10:16:25 +0800
committerVinod Koul <vinod.koul@linux.intel.com>2011-12-05 08:22:26 +0530
commitab59a510c6ad6b3add5125df64843be754782de6 (patch)
treed0f0bcb04c633885e26daba009a55a7b32c35106 /drivers/dma/sirf-dma.c
parentdma/ep93xx_dma: prevent ep93xx_dma_tasklet() to reference an empty list (diff)
downloadlinux-dev-ab59a510c6ad6b3add5125df64843be754782de6.tar.xz
linux-dev-ab59a510c6ad6b3add5125df64843be754782de6.zip
IMX/SDMA : save the real count for one DMA transaction.
When we use the SDMA in the UART driver(such as imx6q), we will meet one situation: Assume we set 64 bytes for the RX DMA buffer. The RX DMA buffer has received some data, but not full. An Aging DMA request will be received by the SDMA controller if we enable the IDDMAEN(UCR4[6]) in this case. So the UART driver needs to know the count of the real received bytes, and push them to upper layer. Add two new fields to sdmac, and update the `residue` in sdma_tx_status(). Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/sirf-dma.c')
0 files changed, 0 insertions, 0 deletions