dmaengine: edma: re-initialize dummy slot during system resume

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>
This commit is contained in:
Vignesh R 2016-11-23 14:57:55 +05:30 committed by Vinod Koul
parent 201ac4861c
commit 08c824e87e
1 changed files with 3 additions and 0 deletions

View File

@ -2450,6 +2450,9 @@ static int edma_pm_resume(struct device *dev)
int i; int i;
s8 (*queue_priority_mapping)[2]; 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; queue_priority_mapping = ecc->info->queue_priority_mapping;
/* Event queue priority mapping */ /* Event queue priority mapping */