Browse Source

Merge "disp: msm: sde: Fix LTM hist off notification issue"

qctecmdr 5 years ago
parent
commit
a42f0fe0e6
1 changed files with 4 additions and 9 deletions
  1. 4 9
      msm/sde/sde_color_processing.c

+ 4 - 9
msm/sde/sde_color_processing.c

@@ -3693,12 +3693,10 @@ static void _sde_cp_crtc_disable_ltm_hist(struct sde_crtc *sde_crtc,
 {
 	unsigned long irq_flags;
 	u32 i = 0;
-	bool notify = false;
 	u8 hist_off = 1;
 	struct drm_event event;
 
 	spin_lock_irqsave(&sde_crtc->ltm_lock, irq_flags);
-	notify = sde_crtc->ltm_hist_en;
 	sde_crtc->ltm_hist_en = false;
 	INIT_LIST_HEAD(&sde_crtc->ltm_buf_free);
 	INIT_LIST_HEAD(&sde_crtc->ltm_buf_busy);
@@ -3710,13 +3708,10 @@ static void _sde_cp_crtc_disable_ltm_hist(struct sde_crtc *sde_crtc,
 	spin_unlock_irqrestore(&sde_crtc->ltm_lock, irq_flags);
 	event.type = DRM_EVENT_LTM_OFF;
 	event.length = sizeof(hist_off);
-	if (notify) {
-		SDE_EVT32(SDE_EVTLOG_FUNC_ENTRY);
-		msm_mode_object_event_notify(&sde_crtc->base.base,
-				sde_crtc->base.dev, &event,
-				(u8 *)&hist_off);
-	}
-
+	SDE_EVT32(SDE_EVTLOG_FUNC_ENTRY);
+	msm_mode_object_event_notify(&sde_crtc->base.base,
+			sde_crtc->base.dev, &event,
+			(u8 *)&hist_off);
 }
 
 static void sde_cp_ltm_hist_interrupt_cb(void *arg, int irq_idx)