Skip to content

Commit

Permalink
ARM mx3fb: check for DMA engine type
Browse files Browse the repository at this point in the history
We have two dma engines in MX3 systems: The IPU and the SDMA
engine. We have to check if we got a channel from the correct
engine before proceeding with a channel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
  • Loading branch information
Sascha Hauer committed Nov 15, 2010
1 parent f0573e6 commit 1b346af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/video/mx3fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/clk.h>
#include <linux/mutex.h>

#include <mach/dma.h>
#include <mach/hardware.h>
#include <mach/ipu.h>
#include <mach/mx3fb.h>
Expand Down Expand Up @@ -1420,6 +1421,9 @@ static bool chan_filter(struct dma_chan *chan, void *arg)
struct device *dev;
struct mx3fb_platform_data *mx3fb_pdata;

if (!imx_dma_is_ipu(chan))
return false;

if (!rq)
return false;

Expand Down

0 comments on commit 1b346af

Please sign in to comment.