]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dmaengine: pl330: add DMA_PAUSE feature
authorRobert Baldyga <r.baldyga@samsung.com>
Wed, 11 Feb 2015 12:23:18 +0000 (13:23 +0100)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Feb 2015 04:03:36 +0000 (09:33 +0530)
commit88987d2c7534a0269f567fb101e6d71a08f0f01d
treec9305c6ff9b11138f51889126e15f55af2b4350c
parentaee4d1fac887252faf6f7caf7bf1616131d5dbcd
dmaengine: pl330: add DMA_PAUSE feature

DMA_PAUSE command is used for halting DMA transfer on chosen channel.
It can be useful when we want to safely read residue before terminating
all requests on channel. Otherwise there can be situation when some data
is transferred before channel termination but after reading residue,
which obviously results with data loss. To avoid this situation we can
pause channel, read residue and then terminate all requests.
This scenario is common, for example, in serial port drivers.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c