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

Commit 27798365 authored by Daniel Stone's avatar Daniel Stone Committed by Daniel Vetter
Browse files

drm: atomic: Allow setting CRTC active property



Before, we would set the property, but also return -EINVAL because of a
broken fallthrough.

Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 8f164ce4
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -248,11 +248,14 @@ int drm_atomic_crtc_set_property(struct drm_crtc *crtc,
	struct drm_mode_config *config = &dev->mode_config;

	/* FIXME: Mode prop is missing, which also controls ->enable. */
	if (property == config->prop_active) {
	if (property == config->prop_active)
		state->active = val;
	} else if (crtc->funcs->atomic_set_property)
	else if (crtc->funcs->atomic_set_property)
		return crtc->funcs->atomic_set_property(crtc, state, property, val);
	else
		return -EINVAL;

	return 0;
}
EXPORT_SYMBOL(drm_atomic_crtc_set_property);