summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-07-08 12:46:36 +0200
committerVinod Koul <vinod.koul@intel.com>2014-07-28 13:33:09 +0200
commit85a70762b7c79983888bf4d34c6a6bbcf6b40e7d (patch)
treecb5ef8b3a339719ca310d127a38580bc14fdc4c3
parentdmaengine: edma: Support to suppress the period interrupts in cyclic mode (diff)
downloadlinux-85a70762b7c79983888bf4d34c6a6bbcf6b40e7d.tar.xz
linux-85a70762b7c79983888bf4d34c6a6bbcf6b40e7d.zip
ARM: edma: Set default queue to lowest priority
Use the lowest priority queue as default for clients. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Acked-by: Sekhar Nori <nsekhar@ti.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r--arch/arm/common/edma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c
index 485be42519b9..f834aae7720f 100644
--- a/arch/arm/common/edma.c
+++ b/arch/arm/common/edma.c
@@ -1470,7 +1470,8 @@ static int edma_setup_from_hw(struct device *dev, struct edma_soc_info *pdata,
queue_priority_map[i][1] = -1;
pdata->queue_priority_mapping = queue_priority_map;
- pdata->default_queue = 0;
+ /* Default queue has the lowest priority */
+ pdata->default_queue = i - 1;
return 0;
}