summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorFancy Fang <chen.fang@freescale.com>2014-02-10 15:10:31 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 08:57:25 -0500
commit3660a2190379fef8ee2ea9089df7d7341727db1c (patch)
tree83b02834cefc970ba3dcb3e9cadfbb11eaa38e7d /drivers/dma
parent7944906fcb66bebae4027fb97f730a1fbec022e6 (diff)
ENGR00298338 PXP: fix hang issue due to read pxp reg when clk disabled
The function dump_pxp_reg() may be called when the pxp clock is disabled. So this will cause system hang issue. Now add clock enable/disable pair to this function call. Signed-off-by: Fancy Fang <chen.fang@freescale.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/pxp/pxp_dma_v2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v2.c b/drivers/dma/pxp/pxp_dma_v2.c
index 6afec14f5002..c644604227ff 100644
--- a/drivers/dma/pxp/pxp_dma_v2.c
+++ b/drivers/dma/pxp/pxp_dma_v2.c
@@ -1786,7 +1786,9 @@ static int pxp_probe(struct platform_device *pdev)
}
device_create_file(&pdev->dev, &dev_attr_block_size);
+ pxp_clk_enable(pxp);
dump_pxp_reg(pxp);
+ pxp_clk_disable(pxp);
INIT_WORK(&pxp->work, clkoff_callback);
init_timer(&pxp->clk_timer);