Skip to content

RFC drm/bridge: adjust bridge module's refcount and more

Jyri Sarha dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/drm_bridge: adjust bridge module's refcountdrivers/gpu/drm/drm_bridge.c include/drm/drm_bridge.h+78 -100 replies
2/3drm/bridge: ti-tfp410: Adapt to bridge object and module refcountingdrivers/gpu/drm/bridge/ti-tfp410.c+10 -60 replies
3/3drm/tilcdc: Adapt to bridge object refcountingdrivers/gpu/drm/tilcdc/tilcdc_external.c+11 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/3] drm/bridge: adjust bridge module's refcount and more

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(-)
Signature · 6 lines
1.9.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel