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

drm/kmb: Switch to drm_atomic_get_new_crtc_state()

The kmb 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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://lore.kernel.org/r/20250930-drm-no-more-existing-state-v5-21-eeb9e1287907@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+1 -2
+1 -2
drivers/gpu/drm/kmb/kmb_plane.c
··· 129 129 } 130 130 can_position = (plane->type == DRM_PLANE_TYPE_OVERLAY); 131 131 crtc_state = 132 - drm_atomic_get_existing_crtc_state(state, 133 - new_plane_state->crtc); 132 + drm_atomic_get_new_crtc_state(state, new_plane_state->crtc); 134 133 return drm_atomic_helper_check_plane_state(new_plane_state, 135 134 crtc_state, 136 135 DRM_PLANE_NO_SCALING,