MLK-14518-2 pxp: set data path for pxp after reset
authorRobby Cai <robby.cai@nxp.com>
Tue, 28 Mar 2017 10:40:56 +0000 (18:40 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:21:59 +0000 (15:21 -0500)
it's needed for pxp legacy process, so set it just after
pxp does the reset.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
drivers/dma/pxp/pxp_dma_v3.c

index 0854757..5acbbd3 100644 (file)
@@ -5226,6 +5226,8 @@ static int pxp_probe(struct platform_device *pdev)
        device_create_file(&pdev->dev, &dev_attr_block_size);
        pxp_clk_enable(pxp);
        pxp_soft_reset(pxp);
+       if (pxp->devdata && pxp->devdata->pxp_data_path_config)
+               pxp->devdata->pxp_data_path_config(pxp);
        /* enable all the possible irq raised by PXP */
        __raw_writel(0xffff, pxp->base + HW_PXP_IRQ_MASK);
 
@@ -5323,6 +5325,8 @@ static int pxp_resume(struct device *dev)
        pxp_clk_enable(pxp);
        /* Pull PxP out of reset */
        pxp_soft_reset(pxp);
+       if (pxp->devdata && pxp->devdata->pxp_data_path_config)
+               pxp->devdata->pxp_data_path_config(pxp);
        /* enable all the possible irq raised by PXP */
        __raw_writel(0xffff, pxp->base + HW_PXP_IRQ_MASK);
        pxp_clk_disable(pxp);