From: Hyungwon Hwang <human.hwang@samsung.com>
To: Varka Bhadram <varkabhadram@gmail.com>
Cc: devicetree@vger.kernel.org, dh09.lee@samsung.com,
sw0312.kim@samsung.com, cw00.choi@samsung.com,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v5 01/12] drm/exynos: add Exynos5433 decon driver
Date: Fri, 10 Apr 2015 15:38:19 +0900 [thread overview]
Message-ID: <20150410153819.079034a8@hwh-ubuntu> (raw)
In-Reply-To: <5527680E.6010709@gmail.com>
Dear Varka Bhadram,
On Fri, 10 Apr 2015 11:35:02 +0530
Varka Bhadram <varkabhadram@gmail.com> wrote:
> On 04/10/2015 11:25 AM, Hyungwon Hwang wrote:
>
> > From: Joonyoung Shim <jy0922.shim@samsung.com>
> >
> > DECON(Display and Enhancement Controller) is new IP replacing FIMD
> > in Exynos5433. This patch adds Exynos5433 decon driver.
> >
> > Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
> > Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
> > ---
> > Changes for v2:
> > - change file names and variable names of decon to represnt
> > exynos5433 instead of exynos to distinguish them from exynos7 decon
> >
> > Changes for v3:
> > - fail fast when the proper image format is not set
> > - remove unnecessary checking code
> > - add and modify the function to make DPMS work well
> >
> > Changes for v4:
> > - rebased to exynos-drm-next with the clean-up patchset by Gustavo
> > Padovan.
> >
> > Changes for v5:
> > - None
> > .../devicetree/bindings/video/exynos5433-decon.txt | 65 +++
> > drivers/gpu/drm/exynos/Kconfig | 6 +
> > drivers/gpu/drm/exynos/Makefile | 1 +
> > drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 617
> > +++++++++++++++++++++
> > drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 +
> > drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 +
> > include/video/exynos5433_decon.h | 163 ++++++ 7
> > files changed, 856 insertions(+) create mode 100644
> > Documentation/devicetree/bindings/video/exynos5433-decon.txt create
> > mode 100644 drivers/gpu/drm/exynos/exynos5433_drm_decon.c create
> > mode 100644 include/video/exynos5433_decon.h
> >
> (...)
>
> > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> > + if (!res) {
> > + dev_err(dev, "cannot find IO resource\n");
> > + return -ENXIO;
> > + }
> > +
>
> Remove the above check. Check one *res* will be done by
> *devm_ioremap_resource()*
OK.
>
> > + ctx->addr = devm_ioremap_resource(dev, res);
> > + if (IS_ERR(ctx->addr)) {
> > + dev_err(dev, "ioremap failed\n");
> > + return PTR_ERR(ctx->addr);
> > + }
> > +
> > + res = platform_get_resource_byname(pdev, IORESOURCE_IRQ,
> > + ctx->i80_if ? "lcd_sys" : "vsync");
> > + if (!res) {
> > + dev_err(dev, "cannot find IRQ resource\n");
> > + return -ENXIO;
> > + }
> > +
> > + ret = devm_request_irq(dev, res->start, ctx->i80_if ?
> > + decon_lcd_sys_irq_handler :
> > decon_vsync_irq_handler, 0,
> > + "drm_decon", ctx);
> > + if (ret < 0) {
> > + dev_err(dev, "lcd_sys irq request failed\n");
> > + return ret;
> > + }
> > +
> > + ret = exynos_drm_component_add(dev,
> > EXYNOS_DEVICE_TYPE_CRTC,
> > + EXYNOS_DISPLAY_TYPE_LCD);
> > + if (ret < 0)
> > + return ret;
> > +
> > + platform_set_drvdata(pdev, ctx);
> > +
> > + ret = component_add(dev, &decon_component_ops);
> > + if (ret < 0) {
> > + exynos_drm_component_del(dev,
> > EXYNOS_DEVICE_TYPE_CRTC);
> > + return ret;
> > + }
> > +
> > + return 0;
> > +}
> > +
> > +static int exynos5433_decon_remove(struct platform_device *pdev)
> > +{
> > + component_del(&pdev->dev, &decon_component_ops);
> > + exynos_drm_component_del(&pdev->dev,
> > EXYNOS_DEVICE_TYPE_CRTC); +
> > + return 0;
> > +}
> > +
> > +static const struct of_device_id
> > exynos5433_decon_driver_dt_match[] = {
> > + { .compatible = "samsung,exynos5433-decon" },
> > + {},
> > +};
> > +MODULE_DEVICE_TABLE(of, exynos5433_decon_driver_dt_match);
> > +
> > +struct platform_driver exynos5433_decon_driver = {
> > + .probe = exynos5433_decon_probe,
> > + .remove = exynos5433_decon_remove,
> > + .driver = {
> > + .name = "exynos5433-decon",
> > + .owner = THIS_MODULE,
>
> Remove this field. It will be updated by platform core.
>
OK.
Thanks for your review.
Best regards,
Hyungwon Hwang
> > + .of_match_table = exynos5433_decon_driver_dt_match,
> > + },
> > +};
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-04-10 6:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-10 5:55 [PATCH v5 00/12] Add drivers for Exynos5433 display Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 03/12] drm/exynos: mic: add MIC driver Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 04/12] drm/exynos: dsi: rename pll_clk to sclk_clk Hyungwon Hwang
2015-04-15 1:24 ` Inki Dae
2015-04-10 5:55 ` [PATCH v5 05/12] drm/exynos: dsi: add macros for register access Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 06/12] drm/exynos: dsi: make use of driver data for static values Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 07/12] drm/exynos: dsi: make use of array for clock access Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 08/12] drm/exynos: dsi: add support for Exynos5433 Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 09/12] drm/exynos: dsi: add the backward compatibility for the renamed clock Hyungwon Hwang
[not found] ` <1428645330-1043-1-git-send-email-human.hwang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-04-10 5:55 ` [PATCH v5 01/12] drm/exynos: add Exynos5433 decon driver Hyungwon Hwang
[not found] ` <1428645330-1043-2-git-send-email-human.hwang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-04-10 6:05 ` Varka Bhadram
2015-04-10 6:38 ` Hyungwon Hwang [this message]
2015-04-10 5:55 ` [PATCH v5 02/12] of: add helper for getting endpoint node of specific identifiers Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 10/12] drm/exynos: dsi: add support for MIC driver as a bridge Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 11/12] drm/exynos: dsi: do not set TE GPIO direction by input Hyungwon Hwang
2015-04-10 5:55 ` [PATCH v5 12/12] ARM: dts: rename the clock of MIPI DSI 'pll_clk' to 'sclk_mipi' Hyungwon Hwang
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=20150410153819.079034a8@hwh-ubuntu \
--to=human.hwang@samsung.com \
--cc=cw00.choi@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dh09.lee@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sw0312.kim@samsung.com \
--cc=varkabhadram@gmail.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;
as well as URLs for NNTP newsgroup(s).