Skip to content

Commit

Permalink
dmaengine: edma: re-initialize dummy slot during system resume
Browse files Browse the repository at this point in the history
The last param set in a transfer should always be pointing to dummy
param set in non-cyclic mode. When system wakes from low power state
EDMA PARAM slots may be reset to random values. Hence, re-initialize
dummy slot to dummy param set on system resume.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Vignesh R authored and Vinod Koul committed Nov 30, 2016
1 parent 201ac48 commit 08c824e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/dma/edma.c
Original file line number Diff line number Diff line change
@@ -2450,6 +2450,9 @@ static int edma_pm_resume(struct device *dev)
int i;
s8 (*queue_priority_mapping)[2];

/* re initialize dummy slot to dummy param set */
edma_write_slot(ecc, ecc->dummy_slot, &dummy_paramset);

queue_priority_mapping = ecc->info->queue_priority_mapping;

/* Event queue priority mapping */

0 comments on commit 08c824e

Please sign in to comment.