From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: dri-devel@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Intel Graphics Development <intel-gfx@lists.freedesktop.org>,
Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [PATCH 3/3] drm: Drop crtc argument from __drm_atomic_helper_connector_destroy_state
Date: Mon, 09 May 2016 14:52:19 +0300 [thread overview]
Message-ID: <5171118.Rb9oodVHY0@avalon> (raw)
In-Reply-To: <1462523550-17470-3-git-send-email-daniel.vetter@ffwll.ch>
Hi Daniel,
Thank you for the patch.
s/crtc/connector/ in the subject (I've just realized that the same comment
applies to patch 2/3, with s/connector/plane/ as well).
Apart from that,
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
On Friday 06 May 2016 10:32:30 Daniel Vetter wrote:
> It's unused, and really this helper should only look at the state
> structure and nothing else. Note that this conflicts with a patch from
> Dave that adds refcounting to drm_connectors. It's not yet clear
> whether the check Dave adds for connector != NULL is really needed or
> the right check.
>
> Cc: Dave Airlie <airlied@gmail.com>
> Acked-by: Thierry Reding <thierry.reding@gmail.com>
> Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> ---
> drivers/gpu/drm/drm_atomic_helper.c | 9 +++------
> include/drm/drm_atomic_helper.h | 3 +--
> 2 files changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_atomic_helper.c
> b/drivers/gpu/drm/drm_atomic_helper.c index eb79073c0086..70a50f746863
> 100644
> --- a/drivers/gpu/drm/drm_atomic_helper.c
> +++ b/drivers/gpu/drm/drm_atomic_helper.c
> @@ -2737,8 +2737,7 @@ void drm_atomic_helper_connector_reset(struct
> drm_connector *connector) kzalloc(sizeof(*conn_state), GFP_KERNEL);
>
> if (connector->state)
> - __drm_atomic_helper_connector_destroy_state(connector,
> - connector->state);
> + __drm_atomic_helper_connector_destroy_state(connector->state);
>
> kfree(connector->state);
> __drm_atomic_helper_connector_reset(connector, conn_state);
> @@ -2871,7 +2870,6 @@ EXPORT_SYMBOL(drm_atomic_helper_duplicate_state);
>
> /**
> * __drm_atomic_helper_connector_destroy_state - release connector state
> - * @connector: connector object
> * @state: connector state object to release
> *
> * Releases all resources stored in the connector state without actually
> @@ -2879,8 +2877,7 @@ EXPORT_SYMBOL(drm_atomic_helper_duplicate_state);
> * subclass the connector state.
> */
> void
> -__drm_atomic_helper_connector_destroy_state(struct drm_connector
> *connector, - struct drm_connector_state *state)
> +__drm_atomic_helper_connector_destroy_state(struct drm_connector_state
> *state) {
> /*
> * This is currently a placeholder so that drivers that subclass the
> @@ -2903,7 +2900,7 @@
> EXPORT_SYMBOL(__drm_atomic_helper_connector_destroy_state); void
> drm_atomic_helper_connector_destroy_state(struct drm_connector *connector,
> struct drm_connector_state *state)
> {
> - __drm_atomic_helper_connector_destroy_state(connector, state);
> + __drm_atomic_helper_connector_destroy_state(state);
> kfree(state);
> }
> EXPORT_SYMBOL(drm_atomic_helper_connector_destroy_state);
> diff --git a/include/drm/drm_atomic_helper.h
> b/include/drm/drm_atomic_helper.h index e9d661a8bd92..3db202e8f270 100644
> --- a/include/drm/drm_atomic_helper.h
> +++ b/include/drm/drm_atomic_helper.h
> @@ -142,8 +142,7 @@ struct drm_atomic_state *
> drm_atomic_helper_duplicate_state(struct drm_device *dev,
> struct drm_modeset_acquire_ctx *ctx);
> void
> -__drm_atomic_helper_connector_destroy_state(struct drm_connector
> *connector, - struct drm_connector_state *state);
> +__drm_atomic_helper_connector_destroy_state(struct drm_connector_state
> *state); void drm_atomic_helper_connector_destroy_state(struct
> drm_connector *connector, struct drm_connector_state *state);
> void drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc,
--
Regards,
Laurent Pinchart
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-05-09 11:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-06 8:32 [PATCH 1/3] drm: Drop crtc argument from __drm_atomic_helper_crtc_destroy_state Daniel Vetter
2016-05-06 8:32 ` [PATCH 2/3] drm: Drop crtc argument from __drm_atomic_helper_connector_destroy_state Daniel Vetter
2016-05-09 11:50 ` Laurent Pinchart
2016-05-06 8:32 ` [PATCH 3/3] " Daniel Vetter
2016-05-09 11:52 ` Laurent Pinchart [this message]
2016-05-09 11:47 ` [PATCH 1/3] drm: Drop crtc argument from __drm_atomic_helper_crtc_destroy_state Laurent Pinchart
2016-05-09 14:35 ` Daniel Vetter
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=5171118.Rb9oodVHY0@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=daniel.vetter@ffwll.ch \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.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