diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-14 14:41:58 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-04-22 21:35:22 +0530 |
commit | b2b617de04081931cc10fd862b76b9fcaa9489e2 (patch) | |
tree | 31ec9e7aae260daed8123e5f7708f42fd9b01dea /drivers/dma | |
parent | 7cf2af90cd515bf27f1b7183f3d6f91b151990ed (diff) | |
download | linux-b2b617de04081931cc10fd862b76b9fcaa9489e2.tar.bz2 |
dmaengine: edma: Correct the handling of src/dst_maxburst == 0
When clients asks for maxburst = 0 it is basically the same case as if they
were asking for maxburst = 1 since in both case ASYNC need to be used and
the eDMA is expected to write/read one word per DMA request.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
Reviewed-and-Tested-by: Joel Fernandes <joelf@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/edma.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 926360c2db6a..d7649d229755 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -287,6 +287,10 @@ static int edma_config_pset(struct dma_chan *chan, struct edmacc_param *pset, int absync; acnt = dev_width; + + /* src/dst_maxburst == 0 is the same case as src/dst_maxburst == 1 */ + if (!burst) + burst = 1; /* * If the maxburst is equal to the fifo width, use * A-synced transfers. This allows for large contiguous |