From: Peter Ujfalusi Date: Mon, 14 Apr 2014 11:41:57 +0000 (+0300) Subject: arm: common: edma: Save the number of event queues/TCs X-Git-Tag: v4.14-rc1~7416^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cf2af90cd515bf27f1b7183f3d6f91b151990ed;p=platform%2Fkernel%2Flinux-rpi.git arm: common: edma: Save the number of event queues/TCs For later use save the number of queues available for the CC. Signed-off-by: Peter Ujfalusi Acked-by: Joel Fernandes Reviewed-and-Tested-by: Joel Fernandes Signed-off-by: Vinod Koul --- diff --git a/arch/arm/common/edma.c b/arch/arm/common/edma.c index 41bca32..999266b 100644 --- a/arch/arm/common/edma.c +++ b/arch/arm/common/edma.c @@ -1768,6 +1768,9 @@ static int edma_probe(struct platform_device *pdev) map_queue_tc(j, queue_tc_mapping[i][0], queue_tc_mapping[i][1]); + /* Save the number of TCs */ + edma_cc[j]->num_tc = i; + /* Event queue priority mapping */ for (i = 0; queue_priority_mapping[i][0] != -1; i++) assign_priority_to_queue(j,