]> www.infradead.org Git - users/hch/misc.git/commitdiff
drm/ast: vga: Clear EDID if no display is connected
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 15 Oct 2024 06:49:07 +0000 (08:49 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 17 Oct 2024 06:50:14 +0000 (08:50 +0200)
Do not keep the obsolete EDID around after unplugging the display
from the connector.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes: 2a2391f857cd ("drm/ast: vga: Transparently handle BMC support")
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Jocelyn Falempe <jfalempe@redhat.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241015065113.11790-3-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_vga.c

index 3e815da43fbd638067016621eadb67118a0dabb6..dd389a0a8f4a2171dc858a20e8be50b44c714e9c 100644 (file)
@@ -29,6 +29,8 @@ static int ast_vga_connector_helper_get_modes(struct drm_connector *connector)
        if (ast_connector->physical_status == connector_status_connected) {
                count = drm_connector_helper_get_modes(connector);
        } else {
+               drm_edid_connector_update(connector, NULL);
+
                /*
                 * There's no EDID data without a connected monitor. Set BMC-
                 * compatible modes in this case. The XGA default resolution