]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/bridge: cdns-csi: Switch to atomic helpers
authorMaxime Ripard <mripard@kernel.org>
Thu, 13 Mar 2025 12:00:06 +0000 (13:00 +0100)
committerMaxime Ripard <mripard@kernel.org>
Thu, 20 Mar 2025 13:45:50 +0000 (14:45 +0100)
commit68c98e227a960c567530b2c4c6765fdeab993e3b
tree347b6e1aa8c1725adf1ca88615e298b68c58633b
parentba6c94d51a87bb4f1faacd3bfa33af57ea9b84eb
drm/bridge: cdns-csi: Switch to atomic helpers

The Cadence DSI 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.

Let's convert this bridge driver to atomic so we can get rid of the
drm_encoder->crtc dereference.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250313-bridge-connector-v6-12-511c54a604fb@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/bridge/cadence/cdns-dsi-core.c