]> Git Repo - J-linux.git/commitdiff
dmaengine: ti: edma: Only reset region0 access registers
authorPeter Ujfalusi <[email protected]>
Fri, 23 Aug 2019 12:56:15 +0000 (15:56 +0300)
committerVinod Koul <[email protected]>
Wed, 4 Sep 2019 09:49:19 +0000 (15:19 +0530)
Region0 is used by Linux, do not reset other registers controlling access
for other shadow regions.

Signed-off-by: Peter Ujfalusi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
drivers/dma/ti/edma.c

index 1aae95cc0d4b0382e9b8a0809bb4a74bc48f47a2..87450431f336d73ea0634950a3fe382af14859a4 100644 (file)
@@ -2434,11 +2434,10 @@ static int edma_probe(struct platform_device *pdev)
                edma_assign_priority_to_queue(ecc, queue_priority_mapping[i][0],
                                              queue_priority_mapping[i][1]);
 
-       for (i = 0; i < ecc->num_region; i++) {
-               edma_write_array2(ecc, EDMA_DRAE, i, 0, 0x0);
-               edma_write_array2(ecc, EDMA_DRAE, i, 1, 0x0);
-               edma_write_array(ecc, EDMA_QRAE, i, 0x0);
-       }
+       edma_write_array2(ecc, EDMA_DRAE, 0, 0, 0x0);
+       edma_write_array2(ecc, EDMA_DRAE, 0, 1, 0x0);
+       edma_write_array(ecc, EDMA_QRAE, 0, 0x0);
+
        ecc->info = info;
 
        /* Init the dma device and channels */
This page took 0.072673 seconds and 4 git commands to generate.