]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/edid: reset display info in drm_add_edid_modes() for NULL edid
authorJani Nikula <jani.nikula@intel.com>
Tue, 3 May 2022 09:23:46 +0000 (12:23 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 5 May 2022 17:16:31 +0000 (20:16 +0300)
If a NULL edid gets passed to drm_add_edid_modes(), we should probably
also reset the display info.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2ac1c55f94a08d5e72c0b518d956a11002ec85c1.1651569697.git.jani.nikula@intel.com
drivers/gpu/drm/drm_edid.c

index bc43e1b320921716abd1c49eac512247a5e2823b..1dea0e2f0cabb2b8b532be1fc418d62d259ebb7e 100644 (file)
@@ -5697,6 +5697,7 @@ static int drm_edid_connector_update(struct drm_connector *connector,
        u32 quirks;
 
        if (edid == NULL) {
+               drm_reset_display_info(connector);
                clear_eld(connector);
                return 0;
        }