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

Commit ae1b1143 authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: allow connector to accept null framebuffer id



Zero is valid a framebuffer identifier to indicated no framebuffer
attached. Change connector to accept null framebuffer as buffer
detachment.

CRs-Fixed: 2009714
Change-Id: I4ffc7e6947b31dce81631746bb2ca2daf02f978c
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent 3e985f08
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -399,9 +399,12 @@ static int sde_connector_atomic_set_property(struct drm_connector *connector,
		/* convert fb val to drm framebuffer and prepare it */
		c_state->out_fb =
			drm_framebuffer_lookup(connector->dev, val);
		if (!c_state->out_fb) {
		if (!c_state->out_fb && val) {
			SDE_ERROR("failed to look up fb %lld\n", val);
			rc = -EFAULT;
		} else if (!c_state->out_fb && !val) {
			SDE_DEBUG("cleared fb_id\n");
			rc = 0;
		} else {
			msm_framebuffer_set_kmap(c_state->out_fb,
					c_conn->fb_kmap);