Thread (44 messages) flat view 44 messages, 10 authors, 2011-08-25
STALE5463d

[PATCH 07/15] ARM: EXYNOS4: Use generic DMA PL330 driver

From: Russell King - ARM Linux <hidden>
Date: 2011-08-21 08:51:08
Also in: linux-samsung-soc

On Mon, Aug 15, 2011 at 07:45:48PM +0530, Thomas Abraham wrote:
quoted
+struct dma_pl330_peri pdma0_peri[28] = {
+ ? ? ? {
+ ? ? ? ? ? ? ? .peri_id = (u8)DMACH_PCM0_RX,
+ ? ? ? ? ? ? ? .rqtype = DEVTOMEM,
+ ? ? ? }, {
The client driver specifies the direction of the transfer
(DMA_TO_DEVICE or DMA_FROM_DEVICE) when requesting for a dma channel.
So, is the rqtype parameter required in the platform data for the dma
driver?
That was done initially too with PL080, which has 8 uncommitted DMA
channels.  Peripheral drivers still had to pass the DMA direction.  So
it turned out to be entirely redundant information, so it got killed off,
along with other channel specific configuration which drivers should've
been doing via the slave configuration callback.

Passing lots of information via platform data which should come via
other routes makes dmaengine users fragile - you can't tell whether
they are passing the correct and full information necessary to work with
other dmaengine drivers.  So, the DMA engine platform data should only
contain the absolute _minimum_ of information.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help