Messages in this thread | | | Subject | Re: [PATCH] dmaengine/dw_dmac: Reconfigure interrupt and chan_cfg register on resume | From | Vinod Koul <> | Date | Mon, 28 Nov 2011 08:50:56 +0530 |
| |
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
| |