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

Commit f492c5d8 authored by Dhaval Patel's avatar Dhaval Patel
Browse files

drm/msm/sde: cache crtc during encoder enable state



Commit 1a9ba3e79a3e ("drm/msm/sde: move crtc caching
to encoder_modeset") started caching the crtc in modeset
state instead of encoder enable. An encoder enable
call might happen without modeset. Allow caching
crtc information for those cases.

Change-Id: I2589180a7a6583541f545194d3146a9dcffdbce7
Signed-off-by: default avatarDhaval Patel <pdhaval@codeaurora.org>
parent 2a5d8fe0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2546,6 +2546,9 @@ static void sde_encoder_virt_enable(struct drm_encoder *drm_enc)
		return;
	}

	if (drm_enc->crtc && !sde_enc->crtc)
		sde_enc->crtc = drm_enc->crtc;

	comp_info = &mode_info.comp_info;
	cur_mode = &sde_enc->base.crtc->state->adjusted_mode;