On Tuesday 24 July 2012 10:38 AM, Vinod Koul wrote:Hi Vinod,On Fri, 2012-07-20 at 13:31 +0530, Laxman Dewangan wrote:Yes, clock driver keeps the reference count and so client driver needEnable the DMA clock when allocating channel andWhat if another channel is active, disabling clock can cause bad
disable clock when freeing channels.
Signed-off-by: Laxman Dewangan<ldewangan@xxxxxxxxxx>
---
+ clk_disable_unprepare(tdma->dma_clk);
behavior. You should check here if all channels are idle and then
disable, or is this handled by clock API?
not to take care.