[PATCH 00/29] drm/bridge: Various quality of life improvements

From: Maxime Ripard
Date: Wed Jan 15 2025 - 16:05:46 EST


Hi,

Here's a series of changes after to the KMS helpers and bridge API
following a bunch of reviews I did.

It's mostly centered across providing an easier time to deal with bridge
states, and a somewhat consistent with the other entities API.

It's build tested only.

Maxime

Signed-off-by: Maxime Ripard <mripard@xxxxxxxxxx>
---
Maxime Ripard (29):
drm/atomic-helper: Fix commit_tail state variable name
drm/atomic-helper: Change parameter name of drm_atomic_helper_wait_for_dependencies()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_tail()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_tail_rpm()
drm/atomic-helper: Change parameter name of drm_atomic_helper_modeset_disables()
drm/atomic-helper: Change parameter name of disable_outputs()
drm/bridge: Change parameter name of drm_atomic_bridge_chain_disable()
drm/bridge: Change parameter name of drm_atomic_bridge_chain_post_disable()
drm/atomic-helper: Change parameter name of drm_atomic_helper_update_legacy_modeset_state()
drm/atomic-helper: Change parameter name of crtc_set_mode()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_planes()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_modeset_enables()
drm/bridge: Change parameter name of drm_atomic_bridge_chain_pre_enable()
drm/bridge: Change parameter name of drm_atomic_bridge_chain_enable()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_writebacks()
drm/atomic-helper: Change parameter name of drm_atomic_helper_fake_vblank()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_hw_done()
drm/atomic-helper: Change parameter name of drm_atomic_helper_wait_for_vblanks()
drm/atomic-helper: Change parameter name of drm_atomic_helper_cleanup_planes()
drm/atomic-helper: Change parameter name of drm_atomic_helper_commit_cleanup_done()
drm/atomic-helper: Change parameter name of drm_atomic_helper_wait_for_flip_done()
drm/bridge: Rename atomic hooks parameters to drop old prefix
drm/bridge: Provide a helper to retrieve current bridge state
drm/bridge: Provide a helper to get the global state from a bridge state
drm/bridge: Provide pointers to the connector and crtc in bridge state
drm/bridge: cdns-csi: Switch to atomic helpers
drm/bridge: tc358775: Switch to atomic commit
drm/bridge: tc358768: Convert to atomic helpers
drm/bridge: ti-sn65dsi86: Use bridge_state crtc pointer

drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c | 22 ++-
drivers/gpu/drm/bridge/tc358768.c | 28 ++-
drivers/gpu/drm/bridge/tc358775.c | 32 ++--
drivers/gpu/drm/bridge/ti-sn65dsi86.c | 41 +++--
drivers/gpu/drm/drm_atomic_helper.c | 242 ++++++++++++-------------
drivers/gpu/drm/drm_atomic_state_helper.c | 5 +
drivers/gpu/drm/drm_bridge.c | 61 ++++---
include/drm/drm_atomic.h | 30 +++
include/drm/drm_bridge.h | 25 ++-
9 files changed, 279 insertions(+), 207 deletions(-)
---
base-commit: 573b73e5ac2ce0d58859eace8218f3a7e9212186
change-id: 20250115-bridge-connector-f93194e267ff

Best regards,
--
Maxime Ripard <mripard@xxxxxxxxxx>