MLK-14963 PXP: enable pxp interrupt after soft reset
authorGuoniu.Zhou <guoniu.zhou@nxp.com>
Mon, 22 May 2017 11:08:41 +0000 (19:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:25 +0000 (15:22 -0500)
After soft reset, the irq register value will be zero, so we need set it to enable
all pxp interrupts.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
drivers/dma/pxp/pxp_dma_v3.c

index 3152372..fe3a72b 100644 (file)
@@ -7422,12 +7422,6 @@ static int pxp_probe(struct platform_device *pdev)
 
        pxp_soft_reset(pxp);
        pxp_writel(0x0, HW_PXP_CTRL);
-
-       /* Initialize PXP Interrupt */
-       err = pxp_init_interrupt(pdev);
-       if (err < 0)
-               goto exit;
-
        /* Initialize DMA engine */
        err = pxp_dma_init(pxp);
        if (err < 0)
@@ -7435,6 +7429,12 @@ static int pxp_probe(struct platform_device *pdev)
 
        pxp_clk_enable(pxp);
        pxp_soft_reset(pxp);
+
+       /* Initialize PXP Interrupt */
+       err = pxp_init_interrupt(pdev);
+       if (err < 0)
+               goto exit;
+
        if (pxp->devdata && pxp->devdata->pxp_data_path_config)
                pxp->devdata->pxp_data_path_config(pxp);