]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/bridge: lt8912b: clear the EDID property on failures
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Jan 2024 19:37:11 +0000 (21:37 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 8 Feb 2024 15:11:19 +0000 (17:11 +0200)
If EDID read fails, clear the EDID property.

Cc: Adrien Grassein <adrien.grassein@gmail.com>
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/2080adaadf4bba3d85f58c42c065caf9aad9a4ef.1706038510.git.jani.nikula@intel.com
drivers/gpu/drm/bridge/lontium-lt8912b.c

index 4dc748d5d1ee0ae03d043ec618a98d9fc6beac75..9c0ffc1c6fac43e89dbebb18d25a149f5465f04b 100644 (file)
@@ -447,8 +447,8 @@ static int lt8912_connector_get_modes(struct drm_connector *connector)
        u32 bus_format = MEDIA_BUS_FMT_RGB888_1X24;
 
        drm_edid = drm_bridge_edid_read(lt->hdmi_port, connector);
+       drm_edid_connector_update(connector, drm_edid);
        if (drm_edid) {
-               drm_edid_connector_update(connector, drm_edid);
                num = drm_edid_connector_add_modes(connector);
        } else {
                return ret;