]> git.karo-electronics.de Git - karo-tx-linux.git/commit
DMA: PL330: Infer transfer direction from transfer request instead of platform data
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 24 Oct 2011 09:43:11 +0000 (11:43 +0200)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 8 Nov 2011 10:05:31 +0000 (19:05 +0900)
commitfc0b5cccc8ddcc5c2f6e7c4bf63f8a25ae06d28d
treecf7d8f003bf61263bfba48f97838085107261d4e
parentd8c904e2d8365b1e1e47ba98cb84fcbd3d3c9349
DMA: PL330: Infer transfer direction from transfer request instead of platform data

The transfer direction for a channel can be inferred from the transfer
request and the need for specifying transfer direction in platfrom data
can be eliminated. So the structure definition 'struct dma_pl330_peri'
is no longer required.

The channel's private data is set to point to a channel id specified in
the platform data (instead of an instance of type 'struct dma_pl330_peri').
The filter function is correspondingly modified to match the channel id.

With the 'struct dma_pl330_peri' removed from platform data, the dma
controller transfer capabilities cannot be inferred any more. Hence,
the dma controller capabilities is specified using platform data.

Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Acked-by: Boojin Kim <boojin.kim@samsung.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
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>
drivers/dma/pl330.c
include/linux/amba/pl330.h