All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>, dri-devel@lists.freedesktop.org
Subject: Re: [RFC/PATCH] drm: Make the .mode_fixup() operations mode argument a const pointer
Date: Wed, 30 May 2012 12:25:44 +0200	[thread overview]
Message-ID: <20120530102544.GC6888@phenom.ffwll.local> (raw)
In-Reply-To: <1703102.0lgQICzOc1@avalon>

On Wed, May 30, 2012 at 12:11:49PM +0200, Laurent Pinchart wrote:
> Hi Daniel,
> 
> On Wednesday 30 May 2012 12:02:19 Daniel Vetter wrote:
> > On Wed, May 30, 2012 at 11:24:50AM +0200, Laurent Pinchart wrote:
> > > On Wednesday 30 May 2012 11:18:56 Daniel Vetter wrote:
> > > > On Wed, May 30, 2012 at 01:01:08AM +0200, Laurent Pinchart wrote:
> > > > > The passed mode must not be modified by the operation, make it const.
> > > > > 
> > > > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > > > 
> > > > Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
> > > 
> > > Thank you for the ack. Would you also be so kind as to tell me how to fix
> > > the related i915 issue (as briefly stated in the patch, the i915 driver
> > > modifies mode->clock in intel_dp_mode_fixup()) ? Or, even better, provide
> > > a patch for that ? :-)
> > 
> > Oops, lack of coffee. Patch is in the works.
> 
> No worries :-) As my patch should go on top of yours, could you please take it 
> in your tree ?

Well I think that patch should go through Dave's tree directly. But I send
him regular -next pull requests, so that should stall your patch for long.
-Daniel

> > Btw, do you plan to constify other stuff?
> 
> Not immediately. When I tried to implement .mode_fixup() I wasn't sure whether 
> drivers were allowed to modify the mode argument. After researching it I came 
> up to the conclusion that they should not, hence the patch. It would make 
> sense to constify other structures and function arguments as well though.
> 
> -- 
> Regards,
> 
> Laurent Pinchart
> 

-- 
Daniel Vetter
Mail: daniel@ffwll.ch
Mobile: +41 (0)79 365 57 48

      reply	other threads:[~2012-05-30 10:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29 23:01 [RFC/PATCH] drm: Make the .mode_fixup() operations mode argument a const pointer Laurent Pinchart
2012-05-30  9:18 ` Daniel Vetter
2012-05-30  9:24   ` Laurent Pinchart
2012-05-30 10:02     ` Daniel Vetter
2012-05-30 10:11       ` Laurent Pinchart
2012-05-30 10:25         ` Daniel Vetter [this message]

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=20120530102544.GC6888@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=daniel.vetter@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.