Просмотр исходного кода

Merge "disp: msm: sde: avoid incorrect register writes in blend stage clear"

qctecmdr 2 лет назад
Родитель
Сommit
0ba41c9277
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      msm/sde/sde_hw_ctl.c

+ 3 - 0
msm/sde/sde_hw_ctl.c

@@ -987,6 +987,9 @@ static void sde_hw_ctl_clear_all_blendstages(struct sde_hw_ctl *ctx)
 	for (i = 0; i < ctx->mixer_count; i++) {
 		int mixer_id = ctx->mixer_hw_caps[i].id;
 
+		if (mixer_id >= LM_DCWB_DUMMY_0)
+			return;
+
 		SDE_REG_WRITE(c, CTL_LAYER(mixer_id), 0);
 		SDE_REG_WRITE(c, CTL_LAYER_EXT(mixer_id), 0);
 		SDE_REG_WRITE(c, CTL_LAYER_EXT2(mixer_id), 0);