diff options
author | Thomas Abraham <thomas.abraham@linaro.org> | 2011-10-24 05:43:02 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-12-22 20:07:02 -0500 |
commit | 3e2ec13a8185183cd7ff237dadc948a0f9f7398f (patch) | |
tree | fa5efc91ccbb6fe013c2614ac9b676c4192b6f60 /include/linux/amba/pl330.h | |
parent | a169a888bf8c5490ae0377fcd0ad22c6af9fd8e7 (diff) |
DMA: PL330: move filter function into driver
The dma channel selection filter function is moved from plat-samsung
into the pl330 driver. In additon to that, a check is added in the
filter function to ensure that the channel on which the filter has
been invoked is pl330 channel instance (and avoid any incorrect
access of chan->private in a system with multiple types of DMA
drivers).
Suggested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'include/linux/amba/pl330.h')
-rw-r--r-- | include/linux/amba/pl330.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/amba/pl330.h b/include/linux/amba/pl330.h index d12f077a6daf..6db72dae2f16 100644 --- a/include/linux/amba/pl330.h +++ b/include/linux/amba/pl330.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #ifndef __AMBA_PL330_H_ | 12 | #ifndef __AMBA_PL330_H_ |
13 | #define __AMBA_PL330_H_ | 13 | #define __AMBA_PL330_H_ |
14 | 14 | ||
15 | #include <linux/dmaengine.h> | ||
15 | #include <asm/hardware/pl330.h> | 16 | #include <asm/hardware/pl330.h> |
16 | 17 | ||
17 | struct dma_pl330_peri { | 18 | struct dma_pl330_peri { |
@@ -38,4 +39,5 @@ struct dma_pl330_platdata { | |||
38 | unsigned mcbuf_sz; | 39 | unsigned mcbuf_sz; |
39 | }; | 40 | }; |
40 | 41 | ||
42 | extern bool pl330_filter(struct dma_chan *chan, void *param); | ||
41 | #endif /* __AMBA_PL330_H_ */ | 43 | #endif /* __AMBA_PL330_H_ */ |