lkml.org 
[lkml]   [2011]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] dmaengine/dw_dmac: Reconfigure interrupt and chan_cfg register on resume
From
Date
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@st.com>
Applied thanks

--
~Vinod



\
 
 \ /
  Last update: 2011-11-28 04:29    [W:0.096 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site