drm: bridge: dw_hdmi: clear the EDID property and CEC address on failures
authorJani Nikula <jani.nikula@intel.com>
Tue, 23 Jan 2024 19:37:41 +0000 (21:37 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 9 Feb 2024 08:16:10 +0000 (10:16 +0200)
If EDID read fails, clear the EDID property and CEC address.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/a417ae48da6cc0dc8a9e3d929ce0c91f1e4905f1.1706038510.git.jani.nikula@intel.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c

index 4a2e3f9..0e59b30 100644 (file)
@@ -2505,8 +2505,6 @@ static int dw_hdmi_connector_get_modes(struct drm_connector *connector)
        int ret;
 
        drm_edid = dw_hdmi_edid_read(hdmi, connector);
-       if (!drm_edid)
-               return 0;
 
        drm_edid_connector_update(connector, drm_edid);
        cec_notifier_set_phys_addr(hdmi->cec_notifier,