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

Commit bcf61ae4 authored by Dhaval Patel's avatar Dhaval Patel Committed by Steve Cohen
Browse files

drm/msm/sde: remove fence support through get_property



Remove release and retire fence support through
get property call.

Change-Id: Ib5e3643a8cb10e6bb1ffa45dd78b7a31fbba8cc9
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 13b6d04a
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1065,12 +1065,14 @@ static int sde_connector_atomic_get_property(struct drm_connector *connector,
	c_state = to_sde_connector_state(state);

	idx = msm_property_index(&c_conn->property_info, property);
	if (idx == CONNECTOR_PROP_RETIRE_FENCE)
		rc = sde_fence_create(&c_conn->retire_fence, val, 0);
	else
	if (idx == CONNECTOR_PROP_RETIRE_FENCE) {
		*val = ~0;
		rc = 0;
	} else {
		/* get cached property value */
		rc = msm_property_atomic_get(&c_conn->property_info,
				&c_state->property_state, property, val);
	}

	/* allow for custom override */
	if (c_conn->ops.get_property)
+2 −1
Original line number Diff line number Diff line
@@ -5121,7 +5121,8 @@ static int sde_crtc_atomic_get_property(struct drm_crtc *crtc,

	i = msm_property_index(&sde_crtc->property_info, property);
	if (i == CRTC_PROP_OUTPUT_FENCE) {
		ret = _sde_crtc_get_output_fence(crtc, state, val);
		*val = ~0;
		ret = 0;
	} else {
		ret = msm_property_atomic_get(&sde_crtc->property_info,
			&cstate->property_state, property, val);