]> 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)
commit5ae0d271fc595d964fbfffb73265f07e9cb907aa
tree69d130b8bf1f39218af13a1b52e4c69916bfd5bd
parent0878dc3bd255a348bc1579bcdc05d0dc05a4d965
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