From: Vignesh R Date: Wed, 23 Nov 2016 09:27:55 +0000 (+0530) Subject: dmaengine: edma: re-initialize dummy slot during system resume X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08c824e87ea05f989a9768a365f0fc70bcd25298;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Peter Ujfalusi Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index e18a58068bca..1d2be18fec15 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -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 */