From: Gustavo Padovan <gustavo@padovan.org>
To: Alexey Klimov <klimov.linux@gmail.com>
Cc: linux-samsung-soc@vger.kernel.org,
dri-devel@lists.freedesktop.org, inki.dae@samsung.com,
Joonyoung Shim <jy0922.shim@samsung.com>,
tjakobi@math.uni-bielefeld.de,
Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Subject: Re: [PATCH 1/9] drm/exynos: add error messages if clks failed to get enabled
Date: Wed, 3 Jun 2015 15:13:46 -0300 [thread overview]
Message-ID: <20150603181346.GA11711@joana> (raw)
In-Reply-To: <CALW4P+KQ+y1GprbFQ=SfiFdYanD=JNs+7Q06wTqvmKCxyV8B_w@mail.gmail.com>
2015-06-03 Alexey Klimov <klimov.linux@gmail.com>:
> Hi Gustavo,
>
> On Wed, Jun 3, 2015 at 5:30 PM, Gustavo Padovan <gustavo@padovan.org> wrote:
> > From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> >
> > Check error and call DRM_ERROR if clk_prepare_enable() fails.
> >
> > Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> > ---
> > drivers/gpu/drm/exynos/exynos7_drm_decon.c | 29 ++++++++++++++++++++++++----
> > drivers/gpu/drm/exynos/exynos_drm_fimd.c | 14 ++++++++++++--
> > drivers/gpu/drm/exynos/exynos_mixer.c | 31 +++++++++++++++++++++++++-----
> > 3 files changed, 63 insertions(+), 11 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/exynos/exynos7_drm_decon.c b/drivers/gpu/drm/exynos/exynos7_drm_decon.c
> > index d659ba2..ffd7c3b 100644
> > --- a/drivers/gpu/drm/exynos/exynos7_drm_decon.c
> > +++ b/drivers/gpu/drm/exynos/exynos7_drm_decon.c
> > @@ -606,6 +606,7 @@ static void decon_init(struct decon_context *ctx)
> > static void decon_enable(struct exynos_drm_crtc *crtc)
> > {
> > struct decon_context *ctx = crtc->ctx;
> > + int ret;
> >
> > if (!ctx->suspended)
> > return;
> > @@ -614,10 +615,30 @@ static void decon_enable(struct exynos_drm_crtc *crtc)
> >
> > pm_runtime_get_sync(ctx->dev);
> >
> > - clk_prepare_enable(ctx->pclk);
> > - clk_prepare_enable(ctx->aclk);
> > - clk_prepare_enable(ctx->eclk);
> > - clk_prepare_enable(ctx->vclk);
> > + ret = clk_prepare_enable(ctx->pclk);
> > + if (ret < 0) {
> > + DRM_ERROR("Failed to prepare_enable the pclk [%d]\n", ret);
> > + return;
> > + goto pclk_err;
>
> This goto after return probably got here by mistake. Debug/rebase leftover?
Yes. Thanks for pointing it out. I'll send an updated patch fixing this.
>
> <..snip..>
>
>
> By the way, are you using some branch to prepare this patch?
> Could you please check if you're able to apple it?
> In current master branch that i see similar DRM_ERROR() messages are
> already in place in similar functions. For example, in master branch i
> see decon_poweron() instead of decon_enable() and fimd_poweron()
> instead of fimd_enable() in your patch. Is there any chance that it's
> slightly outdated?
This is based on tree of today, with the atomic modesetting patches
applied.
Gustavo
next prev parent reply other threads:[~2015-06-03 18:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-03 14:30 [PATCH 1/9] drm/exynos: add error messages if clks failed to get enabled Gustavo Padovan
2015-06-03 14:30 ` [PATCH 2/9] drm/exynos: add atomic asynchronous commit Gustavo Padovan
2015-06-10 9:45 ` Joonyoung Shim
2015-06-03 14:30 ` [PATCH 3/9] drm/exynos: rename win_commit/disable to atomic-like names Gustavo Padovan
2015-06-03 14:30 ` [PATCH 4/9] drm/exynos: don't disable planes already disabled Gustavo Padovan
2015-06-03 14:30 ` [PATCH 5/9] drm/exynos: pass struct exynos_drm_plane in update/enable Gustavo Padovan
2015-06-03 14:30 ` [PATCH 6/9] drm/exynos: remove duplicated check for suspend Gustavo Padovan
2015-06-03 14:30 ` [PATCH 7/9] drm/exynos: use drm atomic state directly Gustavo Padovan
2015-06-03 14:30 ` [PATCH 8/9] drm/exynos: remove unused fields from struct exynos_drm_plane Gustavo Padovan
2015-06-03 14:30 ` [PATCH 9/9] drm/exynos: unify exynos_drm_plane names with drm core Gustavo Padovan
2015-06-09 14:27 ` Gustavo Padovan
2015-06-10 9:46 ` Joonyoung Shim
2015-06-10 10:42 ` Inki Dae
2015-06-10 10:48 ` Inki Dae
2015-06-03 16:59 ` [PATCH 1/9] drm/exynos: add error messages if clks failed to get enabled Alexey Klimov
2015-06-03 17:09 ` Alexey Klimov
2015-06-03 18:13 ` Gustavo Padovan [this message]
2015-06-03 20:17 ` [PATCH v2] " Gustavo Padovan
2015-06-11 14:12 ` Inki Dae
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=20150603181346.GA11711@joana \
--to=gustavo@padovan.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gustavo.padovan@collabora.co.uk \
--cc=inki.dae@samsung.com \
--cc=jy0922.shim@samsung.com \
--cc=klimov.linux@gmail.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=tjakobi@math.uni-bielefeld.de \
/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