linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
To: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Direct Rendering Infrastructure - Development
	<dri-devel@lists.freedesktop.org>,
	linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@ffwll.ch>,
	freedreno@lists.freedesktop.org,
	Mali DP Maintainers <malidp@foss.arm.com>
Subject: Re: [PATCH] drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_?
Date: Tue, 26 Jul 2016 14:53:17 +0300	[thread overview]
Message-ID: <1469533997.4681.79.camel@linux.intel.com> (raw)
In-Reply-To: <20160726090557.GB8609@e106497-lin.cambridge.arm.com>

On ti, 2016-07-26 at 10:05 +0100, Liviu Dudau wrote:
> > --- a/drivers/gpu/drm/arm/malidp_planes.c
> > +++ b/drivers/gpu/drm/arm/malidp_planes.c
> > @@ -108,7 +108,7 @@ static int malidp_de_plane_check(struct drm_plane *plane,
> >  		return -EINVAL;
> >  
> >  	/* packed RGB888 / BGR888 can't be rotated or flipped */
> > -	if (state->rotation != BIT(DRM_ROTATE_0) &&
> > +	if (state->rotation != DRM_ROTATE_0 &&
> >  	    (state->fb->pixel_format == DRM_FORMAT_RGB888 ||
> >  	     state->fb->pixel_format == DRM_FORMAT_BGR888))
> >  		return -EINVAL;
> > @@ -188,9 +188,9 @@ static void malidp_de_plane_update(struct drm_plane *plane,
> >  	/* setup the rotation and axis flip bits */
> >  	if (plane->state->rotation & DRM_ROTATE_MASK)
> >  		val = ilog2(plane->state->rotation & DRM_ROTATE_MASK) << LAYER_ROT_OFFSET;
> > -	if (plane->state->rotation & BIT(DRM_REFLECT_X))
> > +	if (plane->state->rotation & DRM_REFLECT_X)
> >  		val |= LAYER_V_FLIP;
> > -	if (plane->state->rotation & BIT(DRM_REFLECT_Y))
> > +	if (plane->state->rotation & DRM_REFLECT_Y)
> >  		val |= LAYER_H_FLIP;
> >  
> >  	/* set the 'enable layer' bit */
> > @@ -255,12 +255,12 @@ int malidp_de_planes_init(struct drm_device *drm)
> >  			goto cleanup;
> >  
> >  		if (!drm->mode_config.rotation_property) {
> > -			unsigned long flags = BIT(DRM_ROTATE_0) |
> > -					      BIT(DRM_ROTATE_90) |
> > -					      BIT(DRM_ROTATE_180) |
> > -					      BIT(DRM_ROTATE_270) |
> > -					      BIT(DRM_REFLECT_X) |
> > -					      BIT(DRM_REFLECT_Y);
> > +			unsigned long flags = DRM_ROTATE_0 |
> > +					      DRM_ROTATE_90 |
> > +					      DRM_ROTATE_180 |
> > +					      DRM_ROTATE_270 |
> > +					      DRM_REFLECT_X |
> > +					      DRM_REFLECT_Y;
> >  			drm->mode_config.rotation_property =
> >  				drm_mode_create_rotation_property(drm, flags);
> >  		}
> > @@ -268,7 +268,7 @@ int malidp_de_planes_init(struct drm_device *drm)
> >  		if (drm->mode_config.rotation_property && (id != DE_SMART))
> >  			drm_object_attach_property(&plane->base.base,
> >  						   drm->mode_config.rotation_property,
> > -						   BIT(DRM_ROTATE_0));
> > +						   DRM_ROTATE_0);
> >  
> >  		drm_plane_helper_add(&plane->base,
> >  				     &malidp_de_plane_helper_funcs);
> This patch touches arm/mali-dp driver but the maintainers have not been Cc-ed in the patch? Did
> get_maintainer.pl fail to show our e-mails? (Driver has been added recently, wondering if there
> are issues with MAINTAINERS entry).
> 

Being a mechanical change, I just picked all mailing lists from "open
list" or "maintainer" entries with grep, only adding David and the ones
who I've discussed the intent to do the change with (in the hope they
will review)

But now looking looking, I missed the "supporter" entries and thus your
mailing list. CC'ing the Mali DP mailing list now too.

So my bad, and thanks for notifying.

> The change looks OK to me for mali-dp. So:
> 
> Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
> 
> (one comment at the end of email as well).
> 
> Best regards,
> Liviu
> 

<SNIP>

> > --- a/include/drm/drm_crtc.h
> > +++ b/include/drm/drm_crtc.h
> > @@ -84,13 +84,13 @@ static inline uint64_t I642U64(int64_t val)
> >   * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation
> >   */
> >  #define DRM_ROTATE_MASK 0x0f
> > -#define DRM_ROTATE_0	0
> > -#define DRM_ROTATE_90	1
> > -#define DRM_ROTATE_180	2
> > -#define DRM_ROTATE_270	3
> > +#define DRM_ROTATE_0	BIT(0)
> This seems not to be indented properly?

This is result of being in patch form where '+'/' '/'-' is being added
to the beginning of line before the tab, so the spacing might be off.
When applied, the code is indented properly.

Regards, Joonas
-- 
Joonas Lahtinen
Open Source Technology Center
Intel Corporation

  reply	other threads:[~2016-07-26 11:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-25  7:00 [PATCH] drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_? Joonas Lahtinen
     [not found] ` <1469430025-13540-1-git-send-email-joonas.lahtinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2016-07-26  9:05   ` Liviu Dudau
2016-07-26 11:53     ` Joonas Lahtinen [this message]
2016-07-26 12:41 ` Ville Syrjälä
2016-07-26 14:49 ` Sean Paul
     [not found]   ` <CAOw6vbKGJYdN+aZqM7+EDGut3LU3YkDD1HT4QE=AObh4r2UVtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-07-28  6:44     ` Joonas Lahtinen
2016-07-28 14:04       ` Sean Paul
2016-07-29  5:49         ` Joonas Lahtinen
2016-07-29  5:51           ` Joonas Lahtinen
2016-07-29  5:50         ` [PATCH v2] " Joonas Lahtinen
2016-07-29 19:33           ` Sean Paul

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=1469533997.4681.79.camel@linux.intel.com \
    --to=joonas.lahtinen@linux.intel.com \
    --cc=Liviu.Dudau@arm.com \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=malidp@foss.arm.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).