Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac3c12e4 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm/i915: Warn if stealing non pipe A/B power sequencer



There's no power sequencer on pipe C on VLV/CHV so scream a bit if we
try to steal one from pipes other than A and B.

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 83b84597
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -2691,6 +2691,9 @@ static void vlv_steal_power_sequencer(struct drm_device *dev,


	lockdep_assert_held(&dev_priv->pps_mutex);
	lockdep_assert_held(&dev_priv->pps_mutex);


	if (WARN_ON(pipe != PIPE_A && pipe != PIPE_B))
		return;

	list_for_each_entry(encoder, &dev->mode_config.encoder_list,
	list_for_each_entry(encoder, &dev->mode_config.encoder_list,
			    base.head) {
			    base.head) {
		struct intel_dp *intel_dp;
		struct intel_dp *intel_dp;