diff options
author | Jani Nikula <[email protected]> | 2014-08-21 15:06:25 +0300 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2014-09-03 11:04:18 +0200 |
commit | ec49ba2d709f3a1a4cd822e547db2f07e121b375 (patch) | |
tree | 9d06421b11b0fcefa097942a8090dd287655bc3d | |
parent | ecdb5fd8619964c8fb4e34703fb8e72eaa8a22cb (diff) |
drm/i915: fix panel unlock register mask
Use the correct mask for the unlock bits. In theory this could have lead
to incorrect asserts but this is unlikely in practise.
Signed-off-by: Jani Nikula <[email protected]>
Reviewed-by: Paulo Zanoni <[email protected]>
Reviewed-by: Ville Syrjälä <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 921594f64158..8245fe51994a 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -1210,7 +1210,7 @@ static void assert_panel_unlocked(struct drm_i915_private *dev_priv, val = I915_READ(pp_reg); if (!(val & PANEL_POWER_ON) || - ((val & PANEL_UNLOCK_REGS) == PANEL_UNLOCK_REGS)) + ((val & PANEL_UNLOCK_MASK) == PANEL_UNLOCK_REGS)) locked = false; if (I915_READ(lvds_reg) & LVDS_PIPEB_SELECT) |