Bridges following the new DRM bridge model no longer create a connector
themselves: the display driver has to attach them with
DRM_BRIDGE_ATTACH_NO_CONNECTOR and create one connector for the whole
chain with drm_bridge_connector_init().

Convert komeda to that model, so it keeps working with bridges that have
moved to the new one. The bridges komeda binds to in mainline support
connector-less attach, so boards using them are unaffected.

drm_bridge_connector_init() creates the connector with
drmm_connector_init(), which does not allow a ->destroy hook, so the mode
configuration has to be released by DRM as well. The second patch
switches komeda to drmm_mode_config_init() and adapts the private object
cleanup to the new teardown order.

This series was previously posted together with komeda teardown fixes
and a tda998x fix. Those are independent changes, so they are sent as a
separate fixes series.

Changes in v5:
- Split the fixes out of the series, as they are merged through a
  different tree. This series only contains the conversion to the bridge
  connector model.
- Added the missing cover letter.

Luo Liu (2):
  drm/komeda: Use the bridge connector
  drm/komeda: Use drmm_mode_config_init()

 drivers/gpu/drm/arm/display/Kconfig           |  2 ++
 .../gpu/drm/arm/display/komeda/komeda_crtc.c  | 18 ++++++++--
 .../gpu/drm/arm/display/komeda/komeda_kms.c   | 36 +++++++++++--------
 .../gpu/drm/arm/display/komeda/komeda_kms.h   |  2 +-
 .../arm/display/komeda/komeda_private_obj.c   | 23 +++++++++---
 5 files changed, 57 insertions(+), 24 deletions(-)

-- 
2.25.1

Reply via email to