Commit e7a89ace authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter

drm/i915: Warn if panel power is already on when enabling it

We should never enable the panel power twice. That would indicate a bug
somewhere else as we would need to enable the port twice without
disabling it in between. Also print the port name.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarImre Deak <imre.deak@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 3936fcf4
...@@ -1629,10 +1629,10 @@ static void edp_panel_on(struct intel_dp *intel_dp) ...@@ -1629,10 +1629,10 @@ static void edp_panel_on(struct intel_dp *intel_dp)
DRM_DEBUG_KMS("Turn eDP port %c panel power on\n", DRM_DEBUG_KMS("Turn eDP port %c panel power on\n",
port_name(dp_to_dig_port(intel_dp)->port)); port_name(dp_to_dig_port(intel_dp)->port));
if (edp_have_panel_power(intel_dp)) { if (WARN(edp_have_panel_power(intel_dp),
DRM_DEBUG_KMS("eDP power already on\n"); "eDP port %c panel power already on\n",
port_name(dp_to_dig_port(intel_dp)->port)))
return; return;
}
wait_panel_power_cycle(intel_dp); wait_panel_power_cycle(intel_dp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment