[PATCH] mxs-dma : assign the dma cookie before we enable the dma channel

Vinod Koul vinod.koul at linux.intel.com
Sat Apr 7 12:36:02 EDT 2012


On Sat, 2012-04-07 at 16:14 +0800, Shawn Guo wrote:
> On Sat, Apr 07, 2012 at 01:29:35AM -0400, Huang Shijie wrote:
> > The dma chain may finished very fast, so an interrupt may arises before
> > we assign the dma cookie. In this case, the mxs_dma_int_handler() may
> > hit the BUG_ON() in dma_cookie_complete().
> > 
> > So assign the dma cookie before we enable the dma channel.
> > 
> > Acked-by: Sam Gandhi <samgandhi9 at gmail.com>
> > Signed-off-by: Huang Shijie <shijie8 at gmail.com>
> 
> Acked-by: Shawn Guo <shawn.guo at linaor.org>
> 
> The mxs mmc and audio still works with the change.
> 
Thanks, I will apply this on 4/18.
I am away till then :-)

-- 
~Vinod




More information about the linux-mtd mailing list