From: Inki Dae <inki.dae@samsung.com>
To: Varka Bhadram <varkabhadram@gmail.com>
Cc: linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v7 05/15] drm/exynos: add Exynos5433 decon driver
Date: Mon, 22 Jun 2015 20:57:30 +0900 [thread overview]
Message-ID: <5587F82A.6000409@samsung.com> (raw)
In-Reply-To: <5587F47F.5050405@gmail.com>
On 2015년 06월 22일 20:41, Varka Bhadram wrote:
> Hi,
>
> On 06/22/2015 04:46 PM, Inki Dae 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.
>>
>> Changelog v7:
>> - Rebased on top of exynos-drm-next.
>> - Added runtime pm support.
>>
>> Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
>> Signed-off-by: Hyungwon Hwang <human.hwang@samsung.com>
>> Signed-off-by: Inki Dae <inki.dae@samsung.com>
>> ---
>>
>
> (...)
>
>> +static int exynos5433_decon_probe(struct platform_device *pdev)
>> +{
>> + struct device *dev = &pdev->dev;
>> + struct decon_context *ctx;
>> + struct resource *res;
>> + int ret;
>> + int i;
>> +
>> + ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
>> + if (!ctx)
>> + return -ENOMEM;
>> +
>> + ctx->default_win = 0;
>> + ctx->suspended = true;
>> + ctx->dev = dev;
>> + if (of_get_child_by_name(dev->of_node, "i80-if-timings"))
>> + ctx->i80_if = true;
>> +
>> + for (i = 0; i < ARRAY_SIZE(decon_clks_name); i++) {
>> + struct clk *clk;
>> +
>> + clk = devm_clk_get(ctx->dev, decon_clks_name[i]);
>> + if (IS_ERR(clk))
>> + return PTR_ERR(clk);
>> +
>> + ctx->clks[i] = clk;
>> + }
>> +
>> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>> + if (!res) {
>> + dev_err(dev, "cannot find IO resource\n");
>> + return -ENXIO;
>> + }
>> +
>
> You people promised me to remove this check :-)
Right but isn't it better to check an error explicitly? Anyway trivial one.
>
> http://lists.freedesktop.org/archives/dri-devel/2015-April/081077.html
>
>> + 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;
>> + }
>> +
>> + platform_set_drvdata(pdev, ctx);
>
> You are setting the driver data as ctx..
>
> But no where you are using it...?
>
> Am i missing anything ?
See decon_bind and decon_unbind functions. :)
Thanks,
Inki Dae
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-06-22 11:57 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-12 12:58 [PATCH v6 00/15] Add drivers for Exynos5433 display Hyungwon Hwang
2015-06-12 12:58 ` [PATCH v6 02/15] drm/exynos: Add the dependency for DRM_EXYNOS to DPI/DSI/DP Hyungwon Hwang
2015-06-12 12:58 ` [PATCH v6 03/15] drm/exynos: add drm_iommu_attach_device_if_possible() Hyungwon Hwang
2015-06-12 12:58 ` [PATCH v6 04/15] drm/exynos: fix the input prompt of Exynos7 DECON Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 06/15] of: add helper for getting endpoint node of specific identifiers Hyungwon Hwang
2015-06-23 0:19 ` Dave Airlie
2015-06-23 2:29 ` Inki Dae
2015-06-12 12:59 ` [PATCH v6 07/15] drm/exynos: mic: add MIC driver Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 12/15] drm/exynos: dsi: add support for Exynos5433 Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 14/15] drm/exynos: dsi: do not set TE GPIO direction by input Hyungwon Hwang
[not found] ` <1434113958-15877-1-git-send-email-human.hwang-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-06-12 12:58 ` [PATCH v6 01/15] drm/exynos: remove the dependency of DP driver for ARCH_EXYNOS Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 05/15] drm/exynos: add Exynos5433 decon driver Hyungwon Hwang
2015-06-22 11:16 ` [PATCH v7 " Inki Dae
2015-06-22 11:41 ` Varka Bhadram
2015-06-22 11:57 ` Inki Dae [this message]
2015-06-22 11:59 ` Varka Bhadram
2015-06-12 12:59 ` [PATCH v6 08/15] drm/exynos: dsi: rename pll_clk to sclk_clk Hyungwon Hwang
2015-06-22 12:25 ` Inki Dae
2015-06-12 12:59 ` [PATCH v6 09/15] drm/exynos: dsi: add macros for register access Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 10/15] drm/exynos: dsi: make use of driver data for static values Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 11/15] drm/exynos: dsi: make use of array for clock access Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 13/15] drm/exynos: dsi: add support for MIC driver as a bridge Hyungwon Hwang
2015-06-12 12:59 ` [PATCH v6 15/15] ARM: dts: rename the clock of MIPI DSI 'pll_clk' to 'sclk_mipi' Hyungwon Hwang
2015-06-22 9:10 ` Inki Dae
2015-06-22 11:42 ` Inki Dae
2015-06-22 11:59 ` Krzysztof Kozlowski
2015-06-22 12:10 ` Inki Dae
2015-06-22 12:20 ` Krzysztof Kozlowski
2015-06-22 12:35 ` Krzysztof Kozlowski
2015-06-23 2:10 ` Krzysztof Kozlowski
2015-06-23 2:28 ` Inki Dae
2015-06-23 4:00 ` Krzysztof Kozlowski
2015-06-12 12:59 ` [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Hyungwon Hwang
2015-06-12 13:02 ` Hyungwon Hwang
2015-06-12 12:59 ` [PATCH 2/3] ARM: dts: Add the reference node for syscon to mipi phy for Exynos3250 Hyungwon Hwang
2015-06-12 13:02 ` Hyungwon Hwang
2015-06-12 12:59 ` [PATCH 2/2] drm/exynos: ipp: validate a GEM handle with multiple planes Hyungwon Hwang
2015-06-12 13:02 ` Hyungwon Hwang
2015-06-12 12:59 ` [PATCH] ARM: dts: set display clock correctly for exynos4412-trats2 Hyungwon Hwang
2015-06-12 12:59 ` [PATCH 1/3] drm/panel: add s6e63j0x03 LCD panel driver Hyungwon Hwang
2015-06-12 13:02 ` Hyungwon Hwang
2015-06-12 12:59 ` [PATCH 3/3] ARM: dts: fix the clock-frequency of rinato board's panel Hyungwon Hwang
2015-06-12 13:02 ` Hyungwon Hwang
-- strict thread matches above, loose matches on Subject: below --
2015-01-19 7:52 [PATCH v3 1/3] ARM: dts: add fimd device support for exynos3250-rinato Hyungwon Hwang
2015-01-19 7:52 ` [PATCH v3 2/3] drm/panel: add s6e63j0x03 LCD panel driver Hyungwon Hwang
2015-02-03 14:00 ` Thierry Reding
2015-06-12 13:03 ` [v3,2/3] " Hyungwon Hwang
2015-01-19 7:52 ` [PATCH v3 3/3] ARM: dts: add Panel device support for exynos3250-rinato 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=5587F82A.6000409@samsung.com \
--to=inki.dae@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-samsung-soc@vger.kernel.org \
--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