mbox series

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

Message ID 20210910130941.1740182-1-maxime@cerno.tech (mailing list archive)
Headers show
Series drm/bridge: Create a function to abstract panels away | expand

Message

Maxime Ripard Sept. 10, 2021, 1:09 p.m. UTC
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(-)