From: Gustavo Padovan <gustavo@padovan.org>
To: Joonyoung Shim <jy0922.shim@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org,
Gustavo Padovan <gustavo.padovan@collabora.co.uk>,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH -v2 3/8] drm/exynos: remove struct *_win_data abstraction on planes
Date: Tue, 31 Mar 2015 12:33:57 -0300 [thread overview]
Message-ID: <20150331153357.GA9294@joana> (raw)
In-Reply-To: <551A5893.8040706@samsung.com>
2015-03-31 Joonyoung Shim <jy0922.shim@samsung.com>:
> Hi,
>
> On 03/26/2015 11:10 PM, Gustavo Padovan wrote:
> > From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> >
> > struct {fimd,mixer,vidi}_win_data was just keeping the same data
> > as struct exynos_drm_plane thus get ride of it and use exynos_drm_plane
> > directly.
> >
> > It changes how planes are created and remove .win_mode_set() callback
> > that was only filling all *_win_data structs.
> >
> > Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> > ---
> > drivers/gpu/drm/exynos/exynos7_drm_decon.c | 164 ++++++++--------------
> > drivers/gpu/drm/exynos/exynos_drm_crtc.c | 9 +-
> > drivers/gpu/drm/exynos/exynos_drm_crtc.h | 1 +
> > drivers/gpu/drm/exynos/exynos_drm_drv.c | 14 --
> > drivers/gpu/drm/exynos/exynos_drm_drv.h | 5 +-
> > drivers/gpu/drm/exynos/exynos_drm_fimd.c | 182 +++++++++----------------
> > drivers/gpu/drm/exynos/exynos_drm_plane.c | 23 +---
> > drivers/gpu/drm/exynos/exynos_drm_plane.h | 6 +-
> > drivers/gpu/drm/exynos/exynos_drm_vidi.c | 123 ++++-------------
> > drivers/gpu/drm/exynos/exynos_mixer.c | 212 ++++++++++-------------------
> > 10 files changed, 242 insertions(+), 497 deletions(-)
> >
>
> [snip]
>
> > @@ -818,7 +762,9 @@ static int decon_bind(struct device *dev, struct device *master, void *data)
> > {
> > struct decon_context *ctx = dev_get_drvdata(dev);
> > struct drm_device *drm_dev = data;
> > - int ret;
> > + struct exynos_drm_plane *exynos_plane;
> > + enum drm_plane_type type;
> > + int zpos, ret;
> >
> > ret = decon_ctx_initialize(ctx, drm_dev);
> > if (ret) {
> > @@ -826,8 +772,16 @@ static int decon_bind(struct device *dev, struct device *master, void *data)
> > return ret;
> > }
> >
> > - ctx->crtc = exynos_drm_crtc_create(drm_dev, ctx->pipe,
> > - EXYNOS_DISPLAY_TYPE_LCD,
> > + for (zpos = 0; zpos < WINDOWS_NR; zpos++) {
> > + type = (zpos == ctx->default_win) ? DRM_PLANE_TYPE_PRIMARY :
> > + DRM_PLANE_TYPE_OVERLAY;
> > + exynos_plane_init(drm_dev, &ctx->planes[zpos], 1 << ctx->pipe,
> > + type);
>
> Doesn't error checking need about return value of exynos_plane_init?
Sure, I think it is needed too. I'll send a new patch set shortly.
Gustavo
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-03-31 15:33 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 14:10 [PATCH -v2 0/8] drm/exynos: clean up patches (preparing for atomic) Gustavo Padovan
2015-03-26 14:10 ` [PATCH -v2 1/8] drm/exynos: fimd: fix alpha setting for XR24 pixel format Gustavo Padovan
2015-03-26 14:10 ` [PATCH -v2 2/8] drm/exynos: remove unused exynos_crtc->win_enable() callback Gustavo Padovan
2015-03-26 14:10 ` [PATCH -v2 3/8] drm/exynos: remove struct *_win_data abstraction on planes Gustavo Padovan
2015-03-31 8:19 ` Joonyoung Shim
2015-03-31 15:33 ` Gustavo Padovan [this message]
2015-03-26 14:10 ` [PATCH -v2 4/8] drm/exynos: preset zpos value for overlay planes Gustavo Padovan
2015-03-26 14:10 ` [PATCH -v2 5/8] drm/exynos: make zpos property immutable Gustavo Padovan
2015-03-26 14:10 ` [PATCH -v2 6/8] drm/exynos: remove exynos_plane_destroy() Gustavo Padovan
2015-03-26 14:11 ` [PATCH -v2 7/8] drm/exynos: remove leftover functions declarations Gustavo Padovan
2015-03-26 14:11 ` [PATCH -v2 8/8] drm/exynos: track vblank events on a per crtc basis Gustavo Padovan
2015-03-31 8:27 ` [PATCH -v2 0/8] drm/exynos: clean up patches (preparing for atomic) Joonyoung Shim
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=20150331153357.GA9294@joana \
--to=gustavo@padovan.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gustavo.padovan@collabora.co.uk \
--cc=jy0922.shim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.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