[PATCH 1/1] ARM: mxs-dma: reset after disable channel

Dong Aisheng-B29396 B29396 at freescale.com
Tue Jul 19 05:20:42 EDT 2011



> -----Original Message-----
> From: Guo Shawn-R65073
> Sent: Tuesday, July 19, 2011 4:46 PM
> To: Wolfram Sang
> Cc: Dong Aisheng-B29396; vinod.koul at intel.com; shawn.guo at linaro.org;
> linux-arm-kernel at lists.infradead.org
> Subject: Re: [PATCH 1/1] ARM: mxs-dma: reset after disable channel
> 
> On Tue, Jul 19, 2011 at 10:21:46AM +0200, Wolfram Sang wrote:
> > On Tue, Jul 19, 2011 at 12:02:16PM +0800, Shawn Guo wrote:
> > > On Tue, Jul 19, 2011 at 12:09:56PM +0800, Dong Aisheng wrote:
> > > > We met some channels in abnormal state after disable.
> > > > Reset it to get a clean state.
> > > >
> > > > Signed-off-by: Dong Aisheng <b29396 at freescale.com>
> > > > Cc: Vinod Koul <vinod.koul at intel.com>
> > > > Cc: Shawn Guo <shawn.guo at linaro.org>
> > > > ---
> > >
> > > Acked-by: Shawn Guo <shawn.guo at linaro.org>
> >
> > Just to make sure: Did you investigate where the "abnormal" state came
> > from and if that could be fixed?
> >
> I suppose this is a question for Aisheng, as he is the one who actually
> saw the "abnormal" state.  But since mxs_dma_disable_chan() is being
> called in mxs_dma_control(DMA_TERMINATE_ALL) for case audio, it's should
> be pretty safe reset the channel here.

It looked like the dma was not stopped properly, it maybe still running.
So the next time we allocated DMA chan, a dma interrupt would be generated
Before channel was starting.

I may check if we can find the root cause.

Regards
Dong Aisheng 





More information about the linux-arm-kernel mailing list