]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't read LVDS regs at compute_config time
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 4 Jul 2014 16:38:36 +0000 (13:38 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Jul 2014 20:17:57 +0000 (22:17 +0200)
commit19b29f7b35fd3c4edc72610fc2f1d360ecb7ab84
tree69d130b8bf1f39218af13a1b52e4c69916bfd5bd
parent32a7f1698233d94dd28b4e85e1618392734b65c3
drm/i915: don't read LVDS regs at compute_config time

We may reach this point while the machine is still runtime suspended,
so we'll hit a WARN. The other encoders also don't touch registers at
this point, so instead of waking the machine up, write some code to
keep the register always at the same state, including after we runtime
suspend/resume.

Testcase: igt/pm_rpm
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=80463
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lvds.c