Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/arm/malidp: Switch to drm_atomic_get_new_crtc_state()

The malidp atomic_check implementation uses the deprecated
drm_atomic_get_existing_crtc_state() helper.

This hook is called as part of the global atomic_check, thus before the
states are swapped. The existing state thus points to the new state, and
we can use drm_atomic_get_new_crtc_state() instead.

Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-12-eeb9e1287907@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+1 -1
+1 -1
drivers/gpu/drm/arm/malidp_planes.c
··· 263 263 struct drm_plane_state *state) 264 264 { 265 265 struct drm_crtc_state *crtc_state = 266 - drm_atomic_get_existing_crtc_state(state->state, state->crtc); 266 + drm_atomic_get_new_crtc_state(state->state, state->crtc); 267 267 struct malidp_crtc_state *mc; 268 268 u32 src_w, src_h; 269 269 int ret;