* [PATCH 1/1] drm/sti: call drm_edid_connector_update when edit is NULL
@ 2025-10-14 6:54 Chu Guangqing
2025-10-18 12:25 ` Raphaël Gallais-Pou
0 siblings, 1 reply; 2+ messages in thread
From: Chu Guangqing @ 2025-10-14 6:54 UTC (permalink / raw)
To: alain.volmat, rgallaispou, maarten.lankhorst, mripard,
tzimmermann, airlied, simona
Cc: dri-devel, linux-kernel, Chu Guangqing
call drm_edid_connector_update to reset the information when edit is NULL.
We can see the following comments in drm_edid.c
If EDID is NULL, reset the information.
Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
---
drivers/gpu/drm/sti/sti_hdmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c
index 4e7c3d78b2b9..31a72f7f4d43 100644
--- a/drivers/gpu/drm/sti/sti_hdmi.c
+++ b/drivers/gpu/drm/sti/sti_hdmi.c
@@ -1008,6 +1008,7 @@ static int sti_hdmi_connector_get_modes(struct drm_connector *connector)
return count;
fail:
+ drm_edid_connector_update(connector, NULL);
DRM_ERROR("Can't read HDMI EDID\n");
return 0;
}
--
2.43.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] drm/sti: call drm_edid_connector_update when edit is NULL
2025-10-14 6:54 [PATCH 1/1] drm/sti: call drm_edid_connector_update when edit is NULL Chu Guangqing
@ 2025-10-18 12:25 ` Raphaël Gallais-Pou
0 siblings, 0 replies; 2+ messages in thread
From: Raphaël Gallais-Pou @ 2025-10-18 12:25 UTC (permalink / raw)
To: Chu Guangqing, alain.volmat, maarten.lankhorst, mripard,
tzimmermann, airlied, simona
Cc: dri-devel, linux-kernel
Hi,
Thanks for this patch.
Please change the commit subject to "drm/sti: hdmi: xxx".
Le 14/10/2025 à 08:54, Chu Guangqing a écrit :
> call drm_edid_connector_update to reset the information when edit is NULL.
> We can see the following comments in drm_edid.c
> If EDID is NULL, reset the information.
>
> Signed-off-by: Chu Guangqing <chuguangqing@inspur.com>
> ---
> drivers/gpu/drm/sti/sti_hdmi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c
> index 4e7c3d78b2b9..31a72f7f4d43 100644
> --- a/drivers/gpu/drm/sti/sti_hdmi.c
> +++ b/drivers/gpu/drm/sti/sti_hdmi.c
> @@ -1008,6 +1008,7 @@ static int sti_hdmi_connector_get_modes(struct drm_connector *connector)
> return count;
>
> fail:
> + drm_edid_connector_update(connector, NULL);
> DRM_ERROR("Can't read HDMI EDID\n");
Now that empty EDID has been properly updated, the DRM_ERROR can be
removed IMO. In our use case HDMI is not systematically plugged, so
this ERROR is quite noisy when we do not expect it.
Best regards,
Raphaël> return 0;
> }
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-18 12:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-14 6:54 [PATCH 1/1] drm/sti: call drm_edid_connector_update when edit is NULL Chu Guangqing
2025-10-18 12:25 ` Raphaël Gallais-Pou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®