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

Shawn Guo shawn.guo at linaro.org
Sat Apr 7 04:14:03 EDT 2012


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.

-- 
Regards,
Shawn



More information about the linux-arm-kernel mailing list