[Intel-gfx] [PATCH 6/6] drm/i915/dp: make sure VDD is on around link status checking

Jesse Barnes jbarnes at virtuousgeek.org
Wed Mar 5 23:48:31 CET 2014


In the hotplug case, nothing was grabbing VDD, leading to some warnings.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_dp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
index 763f235..78c883e 100644
--- a/drivers/gpu/drm/i915/intel_dp.c
+++ b/drivers/gpu/drm/i915/intel_dp.c
@@ -3037,10 +3037,13 @@ intel_dp_check_link_status(struct intel_dp *intel_dp)
 	if (WARN_ON(!intel_encoder->base.crtc))
 		return;
 
+	edp_panel_vdd_on(intel_dp);
 	/* Try to read receiver status if the link appears to be up */
 	if (!intel_dp_get_link_status(intel_dp, link_status)) {
+		edp_panel_vdd_off(intel_dp, false);
 		return;
 	}
+	edp_panel_vdd_off(intel_dp, false);
 
 	intel_flush_edp_cache_work(intel_dp);
 
-- 
1.8.4.2




More information about the Intel-gfx mailing list