Re: [PATCH v3] dmaengine: fsl-edma: disable clks on all error paths

2017-12-14 Thread Vinod Koul
On Thu, Dec 14, 2017 at 12:50:51PM +0100, Andreas Platschek wrote: > Previously enabled clks are only disabled if clk_prepare_enable() fails. > However, there are other error paths were the previously enabled > clocks are not disabled. > > To fix the problem, fsl_disable_clocks() now takes the num

[PATCH v3] dmaengine: fsl-edma: disable clks on all error paths

2017-12-14 Thread Andreas Platschek
Previously enabled clks are only disabled if clk_prepare_enable() fails. However, there are other error paths were the previously enabled clocks are not disabled. To fix the problem, fsl_disable_clocks() now takes the number of clocks that shall be disabled + unprepared. For existing calls were al