Message ID | 20161123092755.8522-1-vigneshr@ti.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
On Wed, Nov 23, 2016 at 02:57:55PM +0530, Vignesh R wrote: > 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. Applied, thanks
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 77242b37ef87..3879f80a4815 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -2451,6 +2451,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 */