Ver código fonte

disp: msm: sde: remove check comparing encoder's crtc and crtc

This change removes the check comparing encoder's crtc to the
crtc passed in. This check was required up until commit 70486d209c5a
("disp: msm: sde: remove vblank cache logic"). Now that iteration
is only happening over encoders in the encoder mask, there is no
need to check for a matching crtc to ensure it is valid.

Change-Id: I4ee08061e6c8679fe03f42cf2f889704c99526e5
Signed-off-by: Samantha Tran <[email protected]>
Samantha Tran 5 anos atrás
pai
commit
83ff89732a
1 arquivos alterados com 0 adições e 6 exclusões
  1. 0 6
      msm/sde/sde_crtc.c

+ 0 - 6
msm/sde/sde_crtc.c

@@ -3676,9 +3676,6 @@ static int _sde_crtc_vblank_enable_no_lock(
 
 		drm_for_each_encoder_mask(enc, crtc->dev,
 			crtc->state->encoder_mask) {
-			if (enc->crtc != crtc)
-				continue;
-
 			SDE_EVT32(DRMID(&sde_crtc->base), DRMID(enc), enable,
 					sde_crtc->enabled);
 
@@ -3688,9 +3685,6 @@ static int _sde_crtc_vblank_enable_no_lock(
 	} else {
 		drm_for_each_encoder_mask(enc, crtc->dev,
 			crtc->state->encoder_mask) {
-			if (enc->crtc != crtc)
-				continue;
-
 			SDE_EVT32(DRMID(&sde_crtc->base), DRMID(enc), enable,
 					sde_crtc->enabled);