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

drm/imx-ipuv3: Switch to drm_atomic_get_new_crtc_state()

The imx-ipuv3 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-19-eeb9e1287907@kernel.org
Signed-off-by: Maxime Ripard <mripard@kernel.org>

+1 -2
+1 -2
drivers/gpu/drm/imx/ipuv3/ipuv3-plane.c
··· 386 386 return -EINVAL; 387 387 388 388 crtc_state = 389 - drm_atomic_get_existing_crtc_state(state, 390 - new_state->crtc); 389 + drm_atomic_get_new_crtc_state(state, new_state->crtc); 391 390 if (WARN_ON(!crtc_state)) 392 391 return -EINVAL; 393 392