diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2024-10-15 08:49:07 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2024-10-17 08:50:14 +0200 |
commit | c09c4f2a972ca7cd9c8926594aa2099bcbcd3b79 (patch) | |
tree | 73c9abd9efd4e1149478440d7ff170804be061e1 /drivers/gpu/drm/ast/ast_vga.c | |
parent | drm/ast: sil164: Clear EDID if no display is connected (diff) | |
download | linux-c09c4f2a972ca7cd9c8926594aa2099bcbcd3b79.tar.xz linux-c09c4f2a972ca7cd9c8926594aa2099bcbcd3b79.zip |
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: 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
Diffstat (limited to 'drivers/gpu/drm/ast/ast_vga.c')
-rw-r--r-- | drivers/gpu/drm/ast/ast_vga.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ast/ast_vga.c b/drivers/gpu/drm/ast/ast_vga.c index 3e815da43fbd..dd389a0a8f4a 100644 --- a/drivers/gpu/drm/ast/ast_vga.c +++ b/drivers/gpu/drm/ast/ast_vga.c @@ -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 |