2012-03-16 20:46:13 +00:00
|
|
|
diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
|
2013-11-16 16:03:20 +00:00
|
|
|
index eb8139d..463e373 100644
|
2012-03-16 20:46:13 +00:00
|
|
|
--- a/drivers/gpu/drm/i915/intel_dp.c
|
|
|
|
+++ b/drivers/gpu/drm/i915/intel_dp.c
|
2013-11-16 16:03:20 +00:00
|
|
|
@@ -320,7 +320,7 @@ intel_dp_check_edp(struct intel_dp *intel_dp)
|
|
|
|
return;
|
2013-05-03 12:27:34 +00:00
|
|
|
|
2012-03-16 20:46:13 +00:00
|
|
|
if (!ironlake_edp_have_panel_power(intel_dp) && !ironlake_edp_have_panel_vdd(intel_dp)) {
|
|
|
|
- WARN(1, "eDP powered off while attempting aux channel communication.\n");
|
|
|
|
+ DRM_ERROR("eDP powered off while attempting aux channel communication.\n");
|
|
|
|
DRM_DEBUG_KMS("Status 0x%08x Control 0x%08x\n",
|
2013-11-16 16:03:20 +00:00
|
|
|
I915_READ(_pp_stat_reg(intel_dp)),
|
|
|
|
I915_READ(_pp_ctrl_reg(intel_dp)));
|
|
|
|
@@ -436,7 +436,7 @@ intel_dp_aux_ch(struct intel_dp *intel_dp,
|
2012-03-16 20:46:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (try == 3) {
|
|
|
|
- WARN(1, "dp_aux_ch not started status 0x%08x\n",
|
|
|
|
+ DRM_ERROR("dp_aux_ch not started status 0x%08x\n",
|
|
|
|
I915_READ(ch_ctl));
|
2013-02-26 13:40:33 +00:00
|
|
|
ret = -EBUSY;
|
|
|
|
goto out;
|
2013-11-16 16:03:20 +00:00
|
|
|
@@ -1084,8 +1084,8 @@ void ironlake_edp_panel_vdd_on(struct intel_dp *intel_dp)
|
|
|
|
if (!is_edp(intel_dp))
|
2012-03-16 20:46:13 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
- WARN(intel_dp->want_panel_vdd,
|
|
|
|
- "eDP VDD already requested on\n");
|
|
|
|
+ if (intel_dp->want_panel_vdd)
|
2013-11-16 16:03:20 +00:00
|
|
|
+ DRM_ERROR("eDP VDD already requested on\n");
|
2012-03-16 20:46:13 +00:00
|
|
|
|
|
|
|
intel_dp->want_panel_vdd = true;
|
|
|
|
|
2013-11-16 16:03:20 +00:00
|
|
|
@@ -1160,7 +1160,8 @@ void ironlake_edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync)
|
|
|
|
if (!is_edp(intel_dp))
|
2012-03-16 20:46:13 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
- WARN(!intel_dp->want_panel_vdd, "eDP VDD not forced on");
|
|
|
|
+ if (!intel_dp->want_panel_vdd)
|
|
|
|
+ DRM_ERROR("eDP VDD not forced on");
|
|
|
|
|
|
|
|
intel_dp->want_panel_vdd = false;
|
|
|
|
|
2013-11-16 16:03:20 +00:00
|
|
|
@@ -1233,7 +1234,8 @@ void ironlake_edp_panel_off(struct intel_dp *intel_dp)
|
2012-03-16 20:46:13 +00:00
|
|
|
|
|
|
|
DRM_DEBUG_KMS("Turn eDP power off\n");
|
|
|
|
|
2012-05-31 12:54:01 +00:00
|
|
|
- WARN(!intel_dp->want_panel_vdd, "Need VDD to turn off panel\n");
|
|
|
|
+ if (!intel_dp->want_panel_vdd)
|
|
|
|
+ DRM_ERROR("Need VDD to turn off panel\n");
|
2012-03-16 20:46:13 +00:00
|
|
|
|
2013-05-03 12:27:34 +00:00
|
|
|
pp = ironlake_get_pp_control(intel_dp);
|
2013-02-26 13:40:33 +00:00
|
|
|
/* We need to switch off panel power _and_ force vdd, for otherwise some
|