dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: David Airlie <airlied@linux.ie>,
	Andrzej Hajda <a.hajda@samsung.com>,
	dri-devel@lists.freedesktop.org,
	Thomas Zimmermann <tzimmermann@suse.de>
Subject: Re: [PATCH 1/1] drm: bridge: Mark deprecated operations in drm_bridge_funcs
Date: Mon, 12 Jul 2021 21:47:01 +0200	[thread overview]
Message-ID: <YOycNV1GAPyhzSGN@ravnborg.org> (raw)
In-Reply-To: <YOoHIPWzgFraoeeb@pendragon.ideasonboard.com>

Hi Laurent,

On Sat, Jul 10, 2021 at 11:46:24PM +0300, Laurent Pinchart wrote:
> Hi Sam,
> 
> Thank you for the patch.
> 
> On Sat, Jul 10, 2021 at 10:42:40AM +0200, Sam Ravnborg wrote:
> > drm_bridge_funcs includes several duplicated operations as atomic
> > variants has been added over time.
> 
> s/has/have/
> 
> > New bridge drivers shall use the atomic variants - mark the deprecated
> > operations to try to avoid usage in new bridge drivers.
> > 
> > Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
> > Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> > Cc: Andrzej Hajda <a.hajda@samsung.com>
> > Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> > Cc: Maxime Ripard <mripard@kernel.org>
> > Cc: Thomas Zimmermann <tzimmermann@suse.de>
> > Cc: David Airlie <airlied@linux.ie>
> > Cc: Daniel Vetter <daniel@ffwll.ch>
> > ---
> >  include/drm/drm_bridge.h | 28 ++++++++++++++++++++++++++--
> >  1 file changed, 26 insertions(+), 2 deletions(-)
> > 
> > diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h
> > index 2195daa289d2..6805898d70f5 100644
> > --- a/include/drm/drm_bridge.h
> > +++ b/include/drm/drm_bridge.h
> > @@ -171,6 +171,11 @@ struct drm_bridge_funcs {
> >  	 * signals) feeding it is still running when this callback is called.
> >  	 *
> >  	 * The @disable callback is optional.
> > +	 *
> > +	 * NOTE:
> > +	 *
> > +	 * This is deprecated, do not use!
> > +	 * New drivers shall use &drm_bridge_funcs.atomic_disable.
> >  	 */
> >  	void (*disable)(struct drm_bridge *bridge);
> >  
> > @@ -190,6 +195,11 @@ struct drm_bridge_funcs {
> >  	 * called.
> >  	 *
> >  	 * The @post_disable callback is optional.
> > +	 *
> > +	 * NOTE:
> > +	 *
> > +	 * This is deprecated, do not use!
> > +	 * New drivers shall use &drm_bridge_funcs.atomic_post_disable.
> >  	 */
> >  	void (*post_disable)(struct drm_bridge *bridge);
> >  
> > @@ -213,11 +223,15 @@ struct drm_bridge_funcs {
> >  	 * For atomic drivers the adjusted_mode is the mode stored in
> >  	 * &drm_crtc_state.adjusted_mode.
> >  	 *
> > -	 * NOTE:
> > -	 *
> >  	 * If a need arises to store and access modes adjusted for other
> >  	 * locations than the connection between the CRTC and the first bridge,
> >  	 * the DRM framework will have to be extended with DRM bridge states.
> 
> The DRM framework *has* been extended with DRM bridge states :-) Should
> this be dropped ?
I dropped this while applying.

> 
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tnanks!

	Sam

  reply	other threads:[~2021-07-12 19:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-10  8:42 [PATCH 1/1] drm: bridge: Mark deprecated operations in drm_bridge_funcs Sam Ravnborg
2021-07-10 16:02 ` Maxime Ripard
2021-07-10 20:46 ` Laurent Pinchart
2021-07-12 19:47   ` Sam Ravnborg [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-11  9:16 [PATCH v1 0/2] drm/atmel-hlcdc: drop use of drm_irq mid-layer Sam Ravnborg
2021-07-11  9:16 ` [PATCH 1/1] drm: bridge: Mark deprecated operations in drm_bridge_funcs Sam Ravnborg
2021-07-11  9:20   ` Sam Ravnborg

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=YOycNV1GAPyhzSGN@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=a.hajda@samsung.com \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=tzimmermann@suse.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