From mboxrd@z Thu Jan 1 00:00:00 1970 From: boojin.kim@samsung.com (Boojin Kim) Date: Wed, 12 Oct 2011 13:04:29 +0900 Subject: [PATCH v6 04/10] DMA: PL330: Add device tree support In-Reply-To: <1318270538-30450-5-git-send-email-thomas.abraham@linaro.org> References: <1318270538-30450-1-git-send-email-thomas.abraham@linaro.org> <1318270538-30450-2-git-send-email-thomas.abraham@linaro.org> <1318270538-30450-3-git-send-email-thomas.abraham@linaro.org> <1318270538-30450-4-git-send-email-thomas.abraham@linaro.org> <1318270538-30450-5-git-send-email-thomas.abraham@linaro.org> Message-ID: <000a01cc8894$0a785f60$1f691e20$%kim@samsung.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Thomas Abraham wrote: > Sent: Tuesday, October 11, 2011 3:16 AM > To: linux-arm-kernel at lists.infradead.org > Cc: linux-samsung-soc at vger.kernel.org; kgene.kim at samsung.com; > vinod.koul at intel.com; Jassi Brar; Boojin Kim > Subject: [PATCH v6 04/10] DMA: PL330: Add device tree support > > 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 > Cc: Boojin Kim > Signed-off-by: Thomas Abraham > Reviewed-by: Rob Herring > Acked-by: Jassi Brar > Acked-by: Grant Likely > --- Looks good to me. Acked-by: Boojin Kim