dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Jyri Sarha <jsarha@ti.com>
To: dri-devel@lists.freedesktop.org
Cc: Jyri Sarha <jsarha@ti.com>,
	tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com
Subject: [PATCH RFC 0/3] drm/bridge: adjust bridge module's refcount and more
Date: Thu, 1 Dec 2016 17:52:03 +0200	[thread overview]
Message-ID: <cover.1480603126.git.jsarha@ti.com> (raw)

Note! This series is not yet ready and should not be used as is, it is
just an RFC.

The function documentation is missing and so are the modifications to
all affected drivers. I have added the modification patches for tilcdc
and ti-tfp410 to serve as an example and I have put them into separate
patches for readability.

For the matter of adding devres version of of_drm_get_bridge() and
drm_bridge_alloc(), I think that is a good idea. With reference
counting, each user can hold on to their reference to the bridge
object as long as they need it. The bridge object exists as long as
any of the users still holds on to it.

Cheers,
Jyri

Jyri Sarha (3):
  drm/drm_bridge: adjust bridge module's refcount
  drm/bridge: ti-tfp410: Adapt to bridge object and module refcounting
  drm/tilcdc: Adapt to bridge object refcounting

 drivers/gpu/drm/bridge/ti-tfp410.c       | 16 ++++---
 drivers/gpu/drm/drm_bridge.c             | 78 ++++++++++++++++++++++++++++----
 drivers/gpu/drm/tilcdc/tilcdc_external.c | 15 ++++--
 include/drm/drm_bridge.h                 | 10 +++-
 4 files changed, 99 insertions(+), 20 deletions(-)

-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

             reply	other threads:[~2016-12-01 15:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-01 15:52 Jyri Sarha [this message]
2016-12-01 15:52 ` [PATCH RFC 1/3] drm/drm_bridge: adjust bridge module's refcount Jyri Sarha
2016-12-01 15:52 ` [PATCH RFC 2/3] drm/bridge: ti-tfp410: Adapt to bridge object and module refcounting Jyri Sarha
2016-12-01 15:52 ` [PATCH RFC 3/3] drm/tilcdc: Adapt to bridge object refcounting Jyri Sarha
2016-12-08 20:57 ` [PATCH RFC 0/3] drm/bridge: adjust bridge module's refcount and more Jyri Sarha

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=cover.1480603126.git.jsarha@ti.com \
    --to=jsarha@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=tomi.valkeinen@ti.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).