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

Commit 937e5734 authored by Abhinav Kumar's avatar Abhinav Kumar
Browse files

drm/msm: Clear the mode private flags before setting



Clear the display mode private flags before assigning
the new value. These flags retain the values from the
previous mode set which could be stale in cases where
the mode is different across the hotplugs.

Change-Id: I4bd7021970737e5ae22bade3074d8debfeddc7b3
Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
parent 74fe6935
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -967,6 +967,9 @@ static bool _sde_hdmi_bridge_mode_fixup(struct drm_bridge *bridge,
	struct sde_hdmi_bridge *sde_hdmi_bridge = to_hdmi_bridge(bridge);
	struct hdmi *hdmi = sde_hdmi_bridge->hdmi;

	/* Clear the private flags before assigning new one */
	adjusted_mode->private_flags = 0;

	adjusted_mode->private_flags |=
		_sde_hdmi_choose_best_format(hdmi, adjusted_mode);
	SDE_DEBUG("Adjusted mode private flags: 0x%x\n",