Skip to content

drm/bridge: Create a function to abstract panels away

Maxime Ripard dri-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/bridge: Add a function to abstract away panelsdrivers/gpu/drm/drm_bridge.c drivers/gpu/drm/drm_of.c include/drm/drm_bridge.h+43 -49 replies
2/3drm/vc4: dpi: Switch to devm_drm_of_get_bridgedrivers/gpu/drm/vc4/vc4_dpi.c+4 -111 reply
3/3drm/vc4: dsi: Switch to devm_drm_of_get_bridgedrivers/gpu/drm/vc4/vc4_drv.c drivers/gpu/drm/vc4/vc4_dsi.c+6 -242 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchSam Ravnborg
1/3R-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] drm/bridge: Create a function to abstract panels away

Hi,

This series used to be part of the DSI probe order series, but got removed since it wasn't useful there anymore.

However, I still believe there is value in moving towards merging bridges and panels by only making encoder (or upstream bridges) manipulate bridges.

The first patch creates a new helper that does just this by looking for a bridge and a panel, and if a panel is found create a panel_bridge to return that bridge instead.

The next two patches convert the vc4 encoders to use it.

If it's accepted, I plan on converting all the relevant users over time.

Let me know what you think,
Maxime

Maxime Ripard (3):
drm/bridge: Add a function to abstract away panels drm/vc4: dpi: Switch to devm_drm_of_get_bridge drm/vc4: dsi: Switch to devm_drm_of_get_bridge

 drivers/gpu/drm/drm_bridge.c  | 42 +++++++++++++++++++++++++++++++----
 drivers/gpu/drm/drm_of.c      |  3 +++
 drivers/gpu/drm/vc4/vc4_dpi.c | 15 ++++---------
 drivers/gpu/drm/vc4/vc4_drv.c |  2 ++
 drivers/gpu/drm/vc4/vc4_dsi.c | 28 ++++-------------------
 include/drm/drm_bridge.h      |  2 ++
 6 files changed, 53 insertions(+), 39 deletions(-)
Signature · 1 line
2.31.1