linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: p.zabel@pengutronix.de (Philipp Zabel)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 06/10] drm/imx: Use __drm_atomic_helper_plane_reset instead of copying the logic
Date: Tue, 24 Jul 2018 09:51:22 +0200	[thread overview]
Message-ID: <1532418682.4078.5.camel@pengutronix.de> (raw)
In-Reply-To: <1532418551.4078.3.camel@pengutronix.de>

On Tue, 2018-07-24 at 09:49 +0200, Philipp Zabel wrote:
> Hi Alexandru,
> 
> On Fri, 2018-07-20 at 22:15 +0100, Alexandru Gheorghe wrote:
> > Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com>
> > ---
> >  drivers/gpu/drm/imx/ipuv3-plane.c | 8 +++-----
> >  1 file changed, 3 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/imx/ipuv3-plane.c b/drivers/gpu/drm/imx/ipuv3-plane.c
> > index 203f247d4854..1bd4de03ce9e 100644
> > --- a/drivers/gpu/drm/imx/ipuv3-plane.c
> > +++ b/drivers/gpu/drm/imx/ipuv3-plane.c
> > @@ -281,16 +281,14 @@ static void ipu_plane_state_reset(struct drm_plane *plane)
> >  		ipu_state = to_ipu_plane_state(plane->state);
> >  		__drm_atomic_helper_plane_destroy_state(plane->state);
> >  		kfree(ipu_state);
> > +		plane->state = NULL;
> 
> With __drm_atomic_helper_plane_reset as-is, this could be dropped ...
> 
> >  	}
> >  
> >  	ipu_state = kzalloc(sizeof(*ipu_state), GFP_KERNEL);
> >  
> > -	if (ipu_state) {
> > -		ipu_state->base.plane = plane;
> > -		ipu_state->base.rotation = DRM_MODE_ROTATE_0;
> > -	}
> > +	if (ipu_state)
> > +		__drm_atomic_helper_plane_reset(plane, &ipu_state->base);
> 
> ... if this is change to just
> 
> 	__drm_atomic_helper_plane_reset(plane, &ipu_state->base);

Euh, obviously that won't be possible, sorry for the noise.
I blame the heat.

regards
Philipp

  reply	other threads:[~2018-07-24  7:51 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20180713161407.GQ20303@art_vandelay>
2018-07-20 21:14 ` [PATCH 00/10] Add helper for plane reset Alexandru Gheorghe
2018-07-20 21:15   ` [PATCH 01/10] drm/atomic: Add __drm_atomic_helper_plane_reset Alexandru Gheorghe
2018-07-23  9:37     ` Ayan Halder
2018-07-24  7:48     ` Philipp Zabel
2018-07-24  8:14       ` Alexandru-Cosmin Gheorghe
2018-07-24  8:16         ` Boris Brezillon
2018-07-24  9:28           ` Alexandru-Cosmin Gheorghe
2018-07-20 21:15   ` [PATCH 02/10] drm/amd/display: Use __drm_atomic_helper_plane_reset instead of copying the logic Alexandru Gheorghe
2018-07-20 21:15   ` [PATCH 03/10] drm: mali-dp: " Alexandru Gheorghe
2018-07-23  9:35     ` Ayan Halder
2018-07-24  8:26     ` Liviu Dudau
2018-07-20 21:15   ` [PATCH 04/10] drm: atmel-hlcdc: " Alexandru Gheorghe
2018-07-21  6:12     ` Boris Brezillon
2018-07-20 21:15   ` [PATCH 05/10] drm/exynos: " Alexandru Gheorghe
2018-07-20 21:15   ` [PATCH 06/10] drm/imx: " Alexandru Gheorghe
2018-07-24  7:49     ` Philipp Zabel
2018-07-24  7:51       ` Philipp Zabel [this message]
2018-07-20 21:15   ` [PATCH 07/10] drm: rcar-du: " Alexandru Gheorghe
2018-07-20 21:15   ` [PATCH 08/10] drm/sun4i: " Alexandru Gheorghe
2018-07-20 21:15   ` [PATCH 09/10] drm/vc4: " Alexandru Gheorghe
2018-07-24  6:57     ` Maxime Ripard
2018-07-24  8:11       ` Alexandru-Cosmin Gheorghe
2018-07-24 12:54         ` Maxime Ripard
2018-07-20 21:15   ` [PATCH 10/10] drm/vmwgfx: " Alexandru Gheorghe
2018-07-23 17:16     ` Deepak Singh Rawat
2018-07-23 18:02     ` Sinclair Yeh
2018-07-24 15:31   ` [PATCH 00/10] Add helper for plane reset Harry Wentland

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=1532418682.4078.5.camel@pengutronix.de \
    --to=p.zabel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.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).