summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/bridge/ti-tfp410.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2024-01-23 22:37:17 +0300
committerJani Nikula <jani.nikula@intel.com>2024-02-08 18:12:26 +0300
commitd61f65159eeef5c10885b83a6d58530c44dca3d5 (patch)
tree6410d69112aa63d681a2b57a1448743b5fd92e0d /drivers/gpu/drm/bridge/ti-tfp410.c
parent7b90330f20bff071c71aa86af2e3f0c2d4ca127e (diff)
downloadlinux-d61f65159eeef5c10885b83a6d58530c44dca3d5.tar.xz
drm/bridge: tfp410: clear the EDID property on failures
If EDID read fails, clear the EDID property. Cc: Andrzej Hajda <andrzej.hajda@intel.com> Cc: Neil Armstrong <neil.armstrong@linaro.org> Cc: Robert Foss <rfoss@kernel.org> Cc: Laurent Pinchart <Laurent.pinchart@ideasonboard.com> Cc: Jonas Karlman <jonas@kwiboo.se> Cc: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/f49d95ce21e85495d73384acd184f4f9778368ee.1706038510.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/bridge/ti-tfp410.c')
-rw-r--r--drivers/gpu/drm/bridge/ti-tfp410.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/ti-tfp410.c b/drivers/gpu/drm/bridge/ti-tfp410.c
index dd14731eb03e..c7bef5c23927 100644
--- a/drivers/gpu/drm/bridge/ti-tfp410.c
+++ b/drivers/gpu/drm/bridge/ti-tfp410.c
@@ -61,6 +61,8 @@ static int tfp410_get_modes(struct drm_connector *connector)
drm_edid = NULL;
}
+ drm_edid_connector_update(connector, drm_edid);
+
if (!drm_edid) {
/*
* No EDID, fallback on the XGA standard modes and prefer a mode
@@ -71,8 +73,6 @@ static int tfp410_get_modes(struct drm_connector *connector)
return ret;
}
- drm_edid_connector_update(connector, drm_edid);
-
ret = drm_edid_connector_add_modes(connector);
drm_edid_free(drm_edid);