mxs-dma: enable CLKGATE before accessing registers
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 8 Aug 2011 12:47:47 +0000 (14:47 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 16 Aug 2011 13:03:42 +0000 (18:33 +0530)
commitef298c21c0d9c06ed89ea2fa724c3a018acfff39
tree1b43a0b45cc2d5cb863bea0ea9e8e1271ffd378f
parenta16e470caa173d323ef68dcac98c899b95fa4f84
mxs-dma: enable CLKGATE before accessing registers

After calling mxs_dma_disable_chan() for a channel, that channel
becomes unusable because some controller registers can only be written
when the clock is enabled via CLKGATE.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mxs-dma.c