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

Commit ba47ee1c authored by Prabhanjan Kandula's avatar Prabhanjan Kandula Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: fix crtc enable check



In SDE driver, existing check of crtc enabled is from enabled
of drm crtc object which is not reliable in atomic commit path
and this leads to improper clock calculation. This change fixes
crtc enable check by referring to member from sde crtc which
SDE driver is properly updating in crtc enable and disable.

Change-Id: I331339513307a3b1c87d8a59e390e90e6a9a0bdb
Signed-off-by: default avatarPrabhanjan Kandula <pkandula@codeaurora.org>
parent 47d149c3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -646,7 +646,14 @@ static inline enum sde_crtc_client_type sde_crtc_get_client_type(
 */
static inline bool sde_crtc_is_enabled(struct drm_crtc *crtc)
{
	return crtc ? crtc->enabled : false;
	struct sde_crtc *sde_crtc;

	if (!crtc)
		return false;

	sde_crtc = to_sde_crtc(crtc);

	return sde_crtc->enabled;
}

/**