]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/client: Stop using the legacy crtc->mode
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Feb 2025 21:14:51 +0000 (23:14 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 13 Mar 2025 16:33:11 +0000 (18:33 +0200)
commit82f9570b3563e9045c70658f474f11a48a21d4b9
tree154fb19daf368329afdbc46feec82ac063c27c47
parent3039cc0c0653c6e15130a8719c3237329a954670
drm/client: Stop using the legacy crtc->mode

crtc->mode is legacy junk and shouldn't really be used with
atomic drivers.

Most (all?) atomic drivers do end up still calling
drm_atomic_helper_update_legacy_modeset_state() at some
point, so crtc->mode does still get populated, and this
does work for now. But now that the modes[] lifetime issues
have been sorted out we can just switch over to the
proper crtc->state->mode.

v2: Rebase

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250228211454.8138-6-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_client_modeset.c