Re: [PATCH] dmaengine/dw_dmac: Reconfigure interrupt and chan_cfgregister on resume

From: Vinod Koul
Date: Sun Nov 27 2011 - 22:23:53 EST


On Thu, 2011-11-17 at 16:01 +0530, Viresh Kumar wrote:
> In S2R all DMA registers are reset by hardware and thus they are
> required to be
> reprogrammed. The channels which aren't reprogrammed are channel
> configuration
> and interrupt enable registers, which are currently programmed at
> chan_alloc
> time.
>
> This patch creates another routine to initialize a channel. It will
> try to
> initialize channel on every dwc_dostart() call. If channel is already
> initialised then it simply returns, otherwise it configures registers.
>
> This routine will also initialize registers on wakeup from S2R, as we
> mark
> channels as uninitialized on suspend.
>
> Signed-off-by: Viresh Kumar <viresh.kumar@xxxxxx>
Applied thanks

--
~Vinod

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/