From: Daniel Vetter Date: Thu, 26 Mar 2015 21:18:40 +0000 (+0100) Subject: drm/atomic-helpers: Properly avoid full modeset dance X-Git-Tag: omap-for-v4.2/o2_dc~72^2~19^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4218a32f55fc71983e4c1c6e5b98b28db8226b3b;p=pandora-kernel.git drm/atomic-helpers: Properly avoid full modeset dance Legacy setCrtc has a nice fastpath for just updating the frontbuffer when the output routing doesn't change. Which I of course tried to keep working, except that I fumbled the job: The helpers correctly compute ->mode_changed, CRTC updates get correctly skipped but connector functions are called unconditionally. Fix this. v2: For the disable sided connector->state->crtc might be NULL. Instead look at the old_connector_state->crtc, but still use the new crtc state for that old crtc. Reported by Thierry. Reported-and-Tested-by: Gustavo Padovan Reviewed-by: Gustavo Padovan (v1) Cc: Thierry Reding Cc: Gustavo Padovan (v1) Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed