From: Padmavathi Venna <padma.v-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> To: linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, padma.v-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, padma.kvr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Cc: jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, boojin.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, sbkim73-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org, vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org Subject: [PATCH V2 4/4] DMA: PL330: Modify pl330 filter based on new generic dma dt bindings. Date: Fri, 01 Feb 2013 18:21:56 +0530 [thread overview] Message-ID: <1359723116-18173-5-git-send-email-padma.v@samsung.com> (raw) In-Reply-To: <1359723116-18173-1-git-send-email-padma.v-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> This patch modify the filter function to filter the required channel based on new filter params. Signed-off-by: Padmavathi Venna <padma.v-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> --- drivers/dma/pl330.c | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index ddf4dd0..14d84a4 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2392,15 +2392,12 @@ bool pl330_filter(struct dma_chan *chan, void *param) #ifdef CONFIG_OF if (chan->device->dev->of_node) { - const __be32 *prop_value; - phandle phandle; - struct device_node *node; - - prop_value = ((struct property *)param)->value; - phandle = be32_to_cpup(prop_value++); - node = of_find_node_by_phandle(phandle); - return ((chan->private == node) && - (chan->chan_id == be32_to_cpup(prop_value))); + struct dma_pl330_filter_args *fargs = param; + + if (chan->device != &fargs->pdmac->ddma) + return false; + + return (chan->chan_id == fargs->chan_id); } #endif -- 1.7.4.4
WARNING: multiple messages have this Message-ID (diff)
From: padma.v@samsung.com (Padmavathi Venna) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V2 4/4] DMA: PL330: Modify pl330 filter based on new generic dma dt bindings. Date: Fri, 01 Feb 2013 18:21:56 +0530 [thread overview] Message-ID: <1359723116-18173-5-git-send-email-padma.v@samsung.com> (raw) In-Reply-To: <1359723116-18173-1-git-send-email-padma.v@samsung.com> This patch modify the filter function to filter the required channel based on new filter params. Signed-off-by: Padmavathi Venna <padma.v@samsung.com> --- drivers/dma/pl330.c | 15 ++++++--------- 1 files changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index ddf4dd0..14d84a4 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2392,15 +2392,12 @@ bool pl330_filter(struct dma_chan *chan, void *param) #ifdef CONFIG_OF if (chan->device->dev->of_node) { - const __be32 *prop_value; - phandle phandle; - struct device_node *node; - - prop_value = ((struct property *)param)->value; - phandle = be32_to_cpup(prop_value++); - node = of_find_node_by_phandle(phandle); - return ((chan->private == node) && - (chan->chan_id == be32_to_cpup(prop_value))); + struct dma_pl330_filter_args *fargs = param; + + if (chan->device != &fargs->pdmac->ddma) + return false; + + return (chan->chan_id == fargs->chan_id); } #endif -- 1.7.4.4
next prev parent reply other threads:[~2013-02-01 12:51 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-02-01 12:51 [PATCH V2 0/4] Add generic DMA DT binding support Padmavathi Venna 2013-02-01 12:51 ` Padmavathi Venna 2013-02-01 12:51 ` [PATCH V2 1/4] DMA: PL330: Add xlate function Padmavathi Venna 2013-02-01 12:51 ` Padmavathi Venna 2013-02-01 14:57 ` Arnd Bergmann 2013-02-01 14:57 ` Arnd Bergmann [not found] ` <1359723116-18173-1-git-send-email-padma.v-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> 2013-02-01 12:51 ` [PATCH V2 2/4] DMA: PL330: Register the DMA controller with the generic DMA helpers Padmavathi Venna 2013-02-01 12:51 ` Padmavathi Venna 2013-02-01 14:58 ` Arnd Bergmann 2013-02-01 14:58 ` Arnd Bergmann 2013-02-01 12:51 ` [PATCH V2 3/4] ARM: dts: Add #dma-cells for generic dma binding support Padmavathi Venna 2013-02-01 12:51 ` Padmavathi Venna 2013-02-01 15:16 ` Arnd Bergmann 2013-02-01 15:16 ` Arnd Bergmann 2013-02-01 12:51 ` Padmavathi Venna [this message] 2013-02-01 12:51 ` [PATCH V2 4/4] DMA: PL330: Modify pl330 filter based on new generic dma dt bindings Padmavathi Venna 2013-02-01 15:23 ` Arnd Bergmann 2013-02-01 15:23 ` Arnd Bergmann 2013-02-02 2:30 ` Padma Venkat 2013-02-02 2:30 ` Padma Venkat 2013-02-02 15:09 ` Arnd Bergmann 2013-02-02 15:09 ` Arnd Bergmann 2013-02-04 5:21 ` Padma Venkat 2013-02-04 5:21 ` Padma Venkat
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1359723116-18173-5-git-send-email-padma.v@samsung.com \ --to=padma.v-sze3o3uu22jbdgjk7y7tuq@public.gmane.org \ --cc=boojin.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \ --cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \ --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \ --cc=jassisinghbrar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=kgene.kim-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \ --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \ --cc=linux-samsung-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \ --cc=padma.kvr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \ --cc=sbkim73-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \ --cc=vinod.koul-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.