From: Daniel Vetter Date: Sun, 12 Aug 2012 17:27:11 +0000 (+0200) Subject: drm/i915: prepare load-detect pipe code for dpms changes X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~20^2~30^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24218aacac65f5b731bbff8eeb09ea7847dda2ef;p=pandora-kernel.git drm/i915: prepare load-detect pipe code for dpms changes A few things need adjustement: - Change the dpms state by calling the dpms connector function and not some crtc helper internal callbacks. Otherwise this will break once we switch to our own dpms handling. - Instead of tracking and restoring intel_crtc->dpms_mode use the connector's dpms variable - the former relies on the dpms compuation rules used by the crtc helper. And it would break when the encoder is cloned and the other output has a different dpms state. But luckily no one is crazy enough for that. - Properly clear the connector -> encoder -> crtc linking, even when failing (note that the crtc helper removes the encoder -> crtc link in disabled_unused_functions for us). Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed