From: Daniel Vetter Date: Wed, 17 Oct 2012 09:32:55 +0000 (+0200) Subject: drm/i915: don't save/restore DP regs for kms X-Git-Tag: v3.8-rc1~82^2~192^2~179 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f81183f76a46c654709dc9b3a1af6fb4c7fc8a46;p=pandora-kernel.git drm/i915: don't save/restore DP regs for kms We completely compute these anew in each modeset, hence we don't rely on them containing anything valid after resume. To avoid breaking any ums setup due to reordering of the reads/writes simply don't reorder anything, but bracket the reads/writes into if (!kms) conditionals. More churn, but safer. v2: Fixup the logic, noticed by Paulo Zanoni. Reviewed-by: Paulo Zanoni Tested-by: Paulo Zanoni Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed