diff options
author | Fancy Fang <chen.fang@freescale.com> | 2014-02-10 02:10:31 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:57:25 -0400 |
commit | 3660a2190379fef8ee2ea9089df7d7341727db1c (patch) | |
tree | 83b02834cefc970ba3dcb3e9cadfbb11eaa38e7d /drivers/dma | |
parent | 7944906fcb66bebae4027fb97f730a1fbec022e6 (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.c | 2 |
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) | |||
1786 | } | 1786 | } |
1787 | 1787 | ||
1788 | device_create_file(&pdev->dev, &dev_attr_block_size); | 1788 | device_create_file(&pdev->dev, &dev_attr_block_size); |
1789 | pxp_clk_enable(pxp); | ||
1789 | dump_pxp_reg(pxp); | 1790 | dump_pxp_reg(pxp); |
1791 | pxp_clk_disable(pxp); | ||
1790 | 1792 | ||
1791 | INIT_WORK(&pxp->work, clkoff_callback); | 1793 | INIT_WORK(&pxp->work, clkoff_callback); |
1792 | init_timer(&pxp->clk_timer); | 1794 | init_timer(&pxp->clk_timer); |