Skip to contentSkip to conversation

drm/ast: Trivial EDID fixes

PATCH In review Thomas Zimmermann 2 participants 5 messages Oct 15, 2024

Subsystems (3)
lore
Share & tools
lore

Thomas Zimmermann

author maintainer
#0 lore raw

cover drm/ast: Trivial EDID fixes

After unplugging a display from the connector, the driver has to clear the connector's EDID property. Recent code for BMC support forget to do this for VGA- and SIL164-based transmitters. Fix it.

Thomas Zimmermann (2):
drm/ast: sil164: Clear EDID if no display is connected drm/ast: vga: Clear EDID if no display is connected

 drivers/gpu/drm/ast/ast_sil164.c | 2 ++
 drivers/gpu/drm/ast/ast_vga.c    | 2 ++
 2 files changed, 4 insertions(+)
Signature · 1 line
2.46.0
author maintainer
#1 lore raw

PATCH 1/2 drm/ast: sil164: Clear EDID if no display is connected

Do not keep the obsolete EDID around after unplugging the display from the connector.

Fixes d20c2f846428 ("drm/ast: sil164: Transparently handle BMC support")
Cc Thomas Zimmermann <[email protected]>
Cc Jocelyn Falempe <[email protected]>
Cc Dave Airlie <[email protected]>
---
 drivers/gpu/drm/ast/ast_sil164.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/ast/ast_sil164.c +2 -0
index 6a72268d2314..be01254dd48a 100644
@@ -29,6 +29,8 @@ static int ast_sil164_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
Signature · 1 line
2.46.0
reviewer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] drm/ast: sil164: Clear EDID if no display is connected

Quoted 2 lines · Thomas Zimmermann

Do not keep the obsolete EDID around after unplugging the display from the connector.

Thanks, it looks good to me.

Quoted 24 lines
Fixes d20c2f846428 ("drm/ast: sil164: Transparently handle BMC support")
Cc Thomas Zimmermann <[email protected]>
Cc Jocelyn Falempe <[email protected]>
Cc Dave Airlie <[email protected]>
---
  drivers/gpu/drm/ast/ast_sil164.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/ast/ast_sil164.c +2 -0
index 6a72268d2314..be01254dd48a 100644
@@ -29,6 +29,8 @@ static int ast_sil164_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
author maintainer
#3 lore raw

PATCH 2/2 drm/ast: vga: Clear EDID if no display is connected

In reply to Thomas Zimmermann

Do not keep the obsolete EDID around after unplugging the display from the connector.

Fixes 2a2391f857cd ("drm/ast: vga: Transparently handle BMC support")
Cc Thomas Zimmermann <[email protected]>
Cc Jocelyn Falempe <[email protected]>
Cc Dave Airlie <[email protected]>
---
 drivers/gpu/drm/ast/ast_vga.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/ast/ast_vga.c +2 -0
index 5c79b773af57..abe0fff8485c 100644
@@ -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
Signature · 1 line
2.46.0
reviewer Reviewed-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] drm/ast: vga: Clear EDID if no display is connected

Quoted 2 lines · Thomas Zimmermann

Do not keep the obsolete EDID around after unplugging the display from the connector.

Thanks, it looks good to me.

Quoted 24 lines
Fixes 2a2391f857cd ("drm/ast: vga: Transparently handle BMC support")
Cc Thomas Zimmermann <[email protected]>
Cc Jocelyn Falempe <[email protected]>
Cc Dave Airlie <[email protected]>
---
  drivers/gpu/drm/ast/ast_vga.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/ast/ast_vga.c +2 -0
index 5c79b773af57..abe0fff8485c 100644
@@ -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