From 4a406e182a709718a769c37d33530ed2e6b23b39 Mon Sep 17 00:00:00 2001
From: Sandor Yu <Sandor.yu@nxp.com>
Date: Tue, 17 Nov 2020 15:47:36 +0800
Subject: [PATCH 16/49] LF-2744: drm: cdns: reset force_mode_set flag in
 atomic_check

Reset force_mode_set flag in atomic_check function
to avoid set mode_changed flag multi times when cable plugin.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
---
 drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
index 5890da8aa1a1..e796c2c0e895 100644
--- a/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
+++ b/drivers/gpu/drm/bridge/cadence/cdns-hdmi-core.c
@@ -1,7 +1,7 @@
 /*
  * Cadence High-Definition Multimedia Interface (HDMI) driver
  *
- * Copyright (C) 2019 NXP Semiconductor, Inc.
+ * Copyright (C) 2019-2020 NXP Semiconductor, Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -445,8 +445,6 @@ static void cdns_hdmi_bridge_mode_set(struct drm_bridge *bridge,
 	mutex_lock(&mhdp->lock);
 	cdns_hdmi_mode_set(mhdp);
 	mutex_unlock(&mhdp->lock);
-	/* reset force mode set flag */
-	mhdp->force_mode_set = false;
 }
 
 bool cdns_hdmi_bridge_mode_fixup(struct drm_bridge *bridge,
-- 
2.29.2

