From: Inki Dae <inki.dae@samsung.com>
To: 'Sachin Kamat' <sachin.kamat@linaro.org>,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
devicetree-discuss@lists.ozlabs.org
Cc: k.debski@samsung.com, s.nawrocki@samsung.com,
kgene.kim@samsung.com, patches@linaro.org,
'Ajay Kumar' <ajaykumar.rs@samsung.com>
Subject: RE: [PATCH v2 2/2] drm/exynos: Add device tree based discovery support for G2D
Date: Wed, 06 Feb 2013 16:32:23 +0900 [thread overview]
Message-ID: <02a301ce043c$1b12d150$513873f0$%dae@samsung.com> (raw)
In-Reply-To: <1360128584-23167-2-git-send-email-sachin.kamat@linaro.org>
> -----Original Message-----
> From: Sachin Kamat [mailto:sachin.kamat@linaro.org]
> Sent: Wednesday, February 06, 2013 2:30 PM
> To: linux-media@vger.kernel.org; dri-devel@lists.freedesktop.org;
> devicetree-discuss@lists.ozlabs.org
> Cc: k.debski@samsung.com; sachin.kamat@linaro.org; inki.dae@samsung.com;
> s.nawrocki@samsung.com; kgene.kim@samsung.com; patches@linaro.org; Ajay
> Kumar
> Subject: [PATCH v2 2/2] drm/exynos: Add device tree based discovery
> support for G2D
>
> From: Ajay Kumar <ajaykumar.rs@samsung.com>
>
> This patch adds device tree match table for Exynos G2D controller.
>
> Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> Patch based on exynos-drm-fixes branch of Inki Dae's tree:
> git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git
>
> Changes since v1:
> Modified the compatible string as per the discussions at [1].
> [1] https://patchwork1.kernel.org/patch/2045821/
> ---
> drivers/gpu/drm/exynos/exynos_drm_g2d.c | 10 ++++++++++
> 1 files changed, 10 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> index ddcfb5d..0fcfbe4 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> @@ -19,6 +19,7 @@
> #include <linux/workqueue.h>
> #include <linux/dma-mapping.h>
> #include <linux/dma-attrs.h>
> +#include <linux/of.h>
>
> #include <drm/drmP.h>
> #include <drm/exynos_drm.h>
> @@ -1240,6 +1241,14 @@ static int g2d_resume(struct device *dev)
>
> static SIMPLE_DEV_PM_OPS(g2d_pm_ops, g2d_suspend, g2d_resume);
>
> +#ifdef CONFIG_OF
> +static const struct of_device_id exynos_g2d_match[] = {
> + { .compatible = "samsung,exynos5250-g2d" },
Looks good to me but please add document for it.
To other guys,
And is there anyone who know where this document should be added to?
I'm not sure that the g2d document should be placed in
Documentation/devicetree/bindings/gpu, media, drm/exynos or arm/exynos. At
least, this document should be shared with the g2d hw relevant drivers such
as v4l2 and drm. So is ".../bindings/gpu" proper place?
Thanks,
Inki Dae
> + {},
> +};
> +MODULE_DEVICE_TABLE(of, exynos_g2d_match);
> +#endif
> +
> struct platform_driver g2d_driver = {
> .probe = g2d_probe,
> .remove = g2d_remove,
> @@ -1247,5 +1256,6 @@ struct platform_driver g2d_driver = {
> .name = "s5p-g2d",
> .owner = THIS_MODULE,
> .pm = &g2d_pm_ops,
> + .of_match_table = of_match_ptr(exynos_g2d_match),
> },
> };
> --
> 1.7.4.1
next prev parent reply other threads:[~2013-02-06 7:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-06 5:29 [PATCH v2 1/2] [media] s5p-g2d: Add DT based discovery support Sachin Kamat
2013-02-06 5:29 ` [PATCH v2 2/2] drm/exynos: Add device tree based discovery support for G2D Sachin Kamat
2013-02-06 7:32 ` Inki Dae [this message]
2013-02-06 8:02 ` Sachin Kamat
2013-02-06 8:51 ` Inki Dae
2013-02-06 11:21 ` 김승우
2013-02-06 11:23 ` Sylwester Nawrocki
2013-02-06 11:41 ` Sachin Kamat
2013-02-06 11:47 ` Inki Dae
2013-02-12 13:17 ` Inki Dae
2013-02-12 13:31 ` Sylwester Nawrocki
[not found] ` <511A4442.6000402-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2013-02-12 13:57 ` Inki Dae
[not found] ` <CAAQKjZNmUVZnDcy3fbWkairnneOK7dooJT2gn=9++tzS=uhhzA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-02-12 17:22 ` [PATCH " Sachin Kamat
[not found] ` <1360128584-23167-1-git-send-email-sachin.kamat-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-02-12 17:30 ` [PATCH v2 1/2] [media] s5p-g2d: Add DT based discovery support Sachin Kamat
2013-02-13 23:34 ` Sylwester Nawrocki
[not found] ` <511C230B.5060302-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2013-02-14 15:06 ` Sachin Kamat
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='02a301ce043c$1b12d150$513873f0$%dae@samsung.com' \
--to=inki.dae@samsung.com \
--cc=ajaykumar.rs@samsung.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=k.debski@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=patches@linaro.org \
--cc=s.nawrocki@samsung.com \
--cc=sachin.kamat@linaro.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: 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;
as well as URLs for NNTP newsgroup(s).