From: Kukjin Kim <kgene.kim@samsung.com>
To: 'Marek Szyprowski' <m.szyprowski@samsung.com>,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Cc: kyungmin.park@samsung.com, ben-linux@fluff.org
Subject: RE: [PATCH v2] ARM: Samsung: s5p-fimc: fix dma coherent mask
Date: Thu, 09 Sep 2010 20:20:17 +0900 [thread overview]
Message-ID: <011101cb5010$fdb1d520$f9157f60$%kim@samsung.com> (raw)
In-Reply-To: <1283998673-14899-1-git-send-email-m.szyprowski@samsung.com>
Marek Szyprowski wrote:
>
> FIMC driver uses DMA_coherent allocator, which requires proper dma mask
> to be set.
>
> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
>
> Chnages since v1:
> - use DMA_BIT_MASK() macro, minor coding style change
>
> ---
> arch/arm/plat-s5p/dev-fimc0.c | 7 +++++++
> arch/arm/plat-s5p/dev-fimc1.c | 7 +++++++
> arch/arm/plat-s5p/dev-fimc2.c | 7 +++++++
> 3 files changed, 21 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/plat-s5p/dev-fimc0.c b/arch/arm/plat-s5p/dev-fimc0.c
> index d3f1a9b..f9203fa 100644
> --- a/arch/arm/plat-s5p/dev-fimc0.c
> +++ b/arch/arm/plat-s5p/dev-fimc0.c
> @@ -10,6 +10,7 @@
> */
>
> #include <linux/kernel.h>
> +#include <linux/dma-mapping.h>
> #include <linux/platform_device.h>
> #include <linux/interrupt.h>
> #include <linux/ioport.h>
> @@ -28,9 +29,15 @@ static struct resource s5p_fimc0_resource[] = {
> },
> };
>
> +static u64 s5p_fimc0_dma_mask = DMA_BIT_MASK(32);
> +
> struct platform_device s5p_device_fimc0 = {
> .name = "s5p-fimc",
> .id = 0,
> .num_resources = ARRAY_SIZE(s5p_fimc0_resource),
> .resource = s5p_fimc0_resource,
> + .dev = {
> + .dma_mask = &s5p_fimc0_dma_mask,
> + .coherent_dma_mask = DMA_BIT_MASK(32),
> + },
> };
> diff --git a/arch/arm/plat-s5p/dev-fimc1.c b/arch/arm/plat-s5p/dev-fimc1.c
> index 41bd698..7ed91a3 100644
> --- a/arch/arm/plat-s5p/dev-fimc1.c
> +++ b/arch/arm/plat-s5p/dev-fimc1.c
> @@ -10,6 +10,7 @@
> */
>
> #include <linux/kernel.h>
> +#include <linux/dma-mapping.h>
> #include <linux/platform_device.h>
> #include <linux/interrupt.h>
> #include <linux/ioport.h>
> @@ -28,9 +29,15 @@ static struct resource s5p_fimc1_resource[] = {
> },
> };
>
> +static u64 s5p_fimc1_dma_mask = DMA_BIT_MASK(32);
> +
> struct platform_device s5p_device_fimc1 = {
> .name = "s5p-fimc",
> .id = 1,
> .num_resources = ARRAY_SIZE(s5p_fimc1_resource),
> .resource = s5p_fimc1_resource,
> + .dev = {
> + .dma_mask = &s5p_fimc1_dma_mask,
> + .coherent_dma_mask = DMA_BIT_MASK(32),
> + },
> };
> diff --git a/arch/arm/plat-s5p/dev-fimc2.c b/arch/arm/plat-s5p/dev-fimc2.c
> index dfddeda..5543d6373 100644
> --- a/arch/arm/plat-s5p/dev-fimc2.c
> +++ b/arch/arm/plat-s5p/dev-fimc2.c
> @@ -10,6 +10,7 @@
> */
>
> #include <linux/kernel.h>
> +#include <linux/dma-mapping.h>
> #include <linux/platform_device.h>
> #include <linux/interrupt.h>
> #include <linux/ioport.h>
> @@ -28,9 +29,15 @@ static struct resource s5p_fimc2_resource[] = {
> },
> };
>
> +static u64 s5p_fimc2_dma_mask = DMA_BIT_MASK(32);
> +
> struct platform_device s5p_device_fimc2 = {
> .name = "s5p-fimc",
> .id = 2,
> .num_resources = ARRAY_SIZE(s5p_fimc2_resource),
> .resource = s5p_fimc2_resource,
> + .dev = {
> + .dma_mask = &s5p_fimc2_dma_mask,
> + .coherent_dma_mask = DMA_BIT_MASK(32),
> + },
> };
> --
> 1.7.2.2
looks good to me..will apply :-)
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
next prev parent reply other threads:[~2010-09-09 11:20 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 3:50 [PATCH] Platform fixes for s5p-fimc Marek Szyprowski
2010-09-06 3:50 ` [PATCH 1/4] ARM: S5PC110: add fimc clocks Marek Szyprowski
2010-09-09 0:23 ` Kukjin Kim
2010-09-06 3:50 ` [PATCH 2/4] ARM: Samsung: s5p-fimc: fix dma coherent mask Marek Szyprowski
2010-09-09 0:41 ` Kukjin Kim
2010-09-09 1:44 ` Marek Szyprowski
2010-09-09 2:17 ` [PATCH v2] " Marek Szyprowski
2010-09-09 11:20 ` Kukjin Kim [this message]
2010-09-14 9:27 ` Marek Szyprowski
2010-09-15 23:49 ` Kukjin Kim
2010-09-06 3:50 ` [PATCH 3/4] ARM: S5PC110: add common FIMC setup code Marek Szyprowski
2010-09-06 4:16 ` Marek Vasut
2010-09-06 4:34 ` Marek Szyprowski
2010-09-06 4:40 ` Marek Vasut
2010-09-06 4:52 ` Jassi Brar
2010-09-06 8:46 ` Marek Szyprowski
2010-09-06 9:17 ` Jassi Brar
2010-09-06 10:21 ` Marek Szyprowski
2010-09-06 11:28 ` Jassi Brar
2010-09-06 9:10 ` Marek Szyprowski
2010-09-06 3:50 ` [PATCH 4/4] ARM: S5PC110: use common FIMC clock " Marek Szyprowski
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='011101cb5010$fdb1d520$f9157f60$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=ben-linux@fluff.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox