Browse Source

disp: msm: sde: fix color processing property update during commit

Some of the color processing features might not have a property node,
add checks to prevent caching values for these category of properties.

Change-Id: I02bfe8e6a6cce8526423c4d50bc2c781fff24efa
Gopikrishnaiah Anandan 4 years ago
parent
commit
0bc7a635f6
1 changed files with 2 additions and 1 deletions
  1. 2 1
      msm/sde/sde_color_processing.c

+ 2 - 1
msm/sde/sde_color_processing.c

@@ -2389,7 +2389,8 @@ static int _sde_cp_flush_properties(struct drm_crtc *crtc)
 		cstate->cp_prop_values[feature].cp_node = 0;
 		cstate->cp_prop_values[feature].cp_node = 0;
 		cstate->cp_prop_values[feature].prop_val = 0;
 		cstate->cp_prop_values[feature].prop_val = 0;
 		SDE_EVT32(feature, val);
 		SDE_EVT32(feature, val);
-		_sde_cp_crtc_cache_property(crtc, cstate, prop_node,
+		if (prop_node)
+			_sde_cp_crtc_cache_property(crtc, cstate, prop_node,
 					property, val);
 					property, val);
 	}
 	}
 	cstate->cp_prop_cnt = 0;
 	cstate->cp_prop_cnt = 0;