Skip to content

Commit c09c4f2

Browse files
committed
drm/ast: vga: Clear EDID if no display is connected
Do not keep the obsolete EDID around after unplugging the display from the connector. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 2a2391f ("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
1 parent 5b3c020 commit c09c4f2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/ast/ast_vga.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ static int ast_vga_connector_helper_get_modes(struct drm_connector *connector)
2929
if (ast_connector->physical_status == connector_status_connected) {
3030
count = drm_connector_helper_get_modes(connector);
3131
} else {
32+
drm_edid_connector_update(connector, NULL);
33+
3234
/*
3335
* There's no EDID data without a connected monitor. Set BMC-
3436
* compatible modes in this case. The XGA default resolution

0 commit comments

Comments
 (0)