Thread (13 messages) 13 messages, 3 authors, 2011-09-14

[PATCH v3 4/6] DMA: PL330: Add device tree support

From: jassisinghbrar@gmail.com (Jassi Brar)
Date: 2011-09-12 18:58:34
Also in: linux-devicetree, linux-samsung-soc

On Mon, Sep 12, 2011 at 11:59 PM, Thomas Abraham
[off-list ref] wrote:
For PL330 dma controllers instantiated from device tree, the channel
lookup is based on phandle of the dma controller and dma request id
specified by the client node. During probe, the private data of each
channel of the controller is set to point to the device node of the
dma controller. The 'chan_id' of the each channel is used as the
dma request id.

Client driver requesting dma channels specify the phandle of the
dma controller and the request id. The pl330 filter function
converts the phandle to the device node pointer and matches that
with channel's private data. If a match is found, the request id
from the client node and the 'chan_id' of the channel is matched.
A channel is found if both the values match.

Cc: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Boojin Kim <redacted>
Signed-off-by: Thomas Abraham <redacted>
Reviewed-by: Rob Herring <redacted>
---
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>

thanks
-jassi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help