aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-04-16 17:43:42 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-04-16 18:34:54 -0400
commit17038de5f16569a25343cf68668f3b657eafb00e (patch)
treeb64b1564bc559e5404f3d3335da47317c7dfa4c6
parent8aaa81a166d80ac9bf2813984e5b4c2503d0fe08 (diff)
drm/i915/dp: Flush any outstanding work to turn the VDD off
As we may kick off a delayed workqueue task to switch of the VDD lines, we need to complete that task prior to turning off the panel (which itself depends upon VDD being off). v2: Don't cancel the outstanding work as this may trigger a deadlock Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Keith Packard <keithp@keithp.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_dp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 6346b29ee934..38d097db696f 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -1128,6 +1128,7 @@ static void ironlake_edp_panel_off(struct intel_dp *intel_dp)
1128 DRM_DEBUG_KMS("Turn eDP power off\n"); 1128 DRM_DEBUG_KMS("Turn eDP power off\n");
1129 1129
1130 WARN(intel_dp->want_panel_vdd, "Cannot turn power off while VDD is on\n"); 1130 WARN(intel_dp->want_panel_vdd, "Cannot turn power off while VDD is on\n");
1131 ironlake_panel_vdd_off_sync(intel_dp); /* finish any pending work */
1131 1132
1132 pp = ironlake_get_pp_control(dev_priv); 1133 pp = ironlake_get_pp_control(dev_priv);
1133 pp &= ~(POWER_TARGET_ON | EDP_FORCE_VDD | PANEL_POWER_RESET | EDP_BLC_ENABLE); 1134 pp &= ~(POWER_TARGET_ON | EDP_FORCE_VDD | PANEL_POWER_RESET | EDP_BLC_ENABLE);