dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start [Linux 5.1]

dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start [Linux 5.1]

This Linux kernel change "dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start" is included in the Linux 5.1 release. This change is authored by Shun-Chih Yu <shun-chih.yu [at] mediatek.com> on Thu Apr 25 11:53:50 2019 +0800. The commit for this change in Linux stable tree is 5bb5c3a (patch).

dmaengine: mediatek-cqdma: fix wrong register usage in mtk_cqdma_start

This patch fixes wrong register usage in the mtk_cqdma_start. The
destination register should be MTK_CQDMA_DST2 instead.

Fixes: b1f01e48df5a ("dmaengine: mediatek: Add MediaTek Command-Queue DMA controller for MT6765 SoC")
Signed-off-by: Shun-Chih Yu <[email protected]>
Cc: [email protected]
Signed-off-by: Vinod Koul <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/dma/mediatek/mtk-cqdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/mediatek/mtk-cqdma.c b/drivers/dma/mediatek/mtk-cqdma.c
index 131f397..8148538 100644
--- a/drivers/dma/mediatek/mtk-cqdma.c
+++ b/drivers/dma/mediatek/mtk-cqdma.c
@@ -253,7 +253,7 @@ static void mtk_cqdma_start(struct mtk_cqdma_pchan *pc,
 #ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT
    mtk_dma_set(pc, MTK_CQDMA_DST2, cvd->dest >> MTK_CQDMA_ADDR2_SHFIT);
 #else
-   mtk_dma_set(pc, MTK_CQDMA_SRC2, 0);
+   mtk_dma_set(pc, MTK_CQDMA_DST2, 0);
 #endif

    /* setup the length */

Leave a Reply

Your email address will not be published. Required fields are marked *