]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: ti-sn65dsi86: Remove drm_encoder->crtc use
authorMaxime Ripard <mripard@kernel.org>
Thu, 13 Mar 2025 12:00:10 +0000 (13:00 +0100)
committerMaxime Ripard <mripard@kernel.org>
Thu, 20 Mar 2025 13:45:53 +0000 (14:45 +0100)
commitf24d1d4a7a425e67551ca8d86a89df7102766ac9
treeac81ac3c0191ee291b0a8612a30cb7aa93cfc568
parent070bac234bc6e8e925f87bb5a5ab1a98b890fce8
drm/bridge: ti-sn65dsi86: Remove drm_encoder->crtc use

The TI sn65dsi86 driver follows the drm_encoder->crtc pointer that is
deprecated and shouldn't be used by atomic drivers.

Fortunately, the atomic hooks provide the drm_atomic_state and we can
access our current CRTC from that, going from the bridge to its encoder,
to its connector, and to its CRTC.

This bridge driver uses the atomic hooks already, but dereferences the
drm_encoder->crtc pointer in functions that don't have access to it.

Let's rework the driver to pass the state where needed, and remove the
need for the drm_encoder->crtc dereference.

Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313-bridge-connector-v6-16-511c54a604fb@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/bridge/ti-sn65dsi86.c