drm/i915: check PPS regs for sanity when using eDP
authorJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 10 Apr 2012 18:58:04 +0000 (11:58 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 12 Apr 2012 19:14:11 +0000 (21:14 +0200)
commitbfa3384a9a84aaaa59443bbd776c142e7dba4b0f
tree67e70b74eb765096138a3e4d0490475a5db3883f
parentf817586cebf1b946d1f327f9a596048efd6b64e9
drm/i915: check PPS regs for sanity when using eDP

If these regs don't have valid values, the panel won't come up, and may
even cause a system hang.  So do a basic sanity check when an eDP panel
is detected.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44305
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c