[PATCH] drm/bridge: lt9611uxc: reset edid_read on disconnect

Nilesh Laad posted 1 patch 2 months, 1 week ago
drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 3 +++
1 file changed, 3 insertions(+)
[PATCH] drm/bridge: lt9611uxc: reset edid_read on disconnect
Posted by Nilesh Laad 2 months, 1 week ago
Currently edid_read has value from previous connect session
and resulting in drm using older edid before new edid is available
in lt9611uxc.
Reset edid_read so that correct status is updated and correct edid
is available for drm.

Signed-off-by: Nilesh Laad <nilesh.laad@oss.qualcomm.com>
---
 drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
index 38fb8776c0f4..f5c887d126fe 100644
--- a/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
+++ b/drivers/gpu/drm/bridge/lontium-lt9611uxc.c
@@ -171,6 +171,9 @@ static void lt9611uxc_hpd_work(struct work_struct *work)
 	connected = lt9611uxc->hdmi_connected;
 	mutex_unlock(&lt9611uxc->ocm_lock);
 
+	if (!connected)
+		lt9611uxc->edid_read = false;
+
 	drm_bridge_hpd_notify(&lt9611uxc->bridge,
 			      connected ?
 			      connector_status_connected :

---
base-commit: 85c23f28905cf20a86ceec3cfd7a0a5572c9eb13
change-id: 20250730-lt9611uxc-reset-edid-cc03c5b4bc60

Best regards,
--  
Nilesh Laad <nilesh.laad@oss.qualcomm.com>
Re: [PATCH] drm/bridge: lt9611uxc: reset edid_read on disconnect
Posted by Dmitry Baryshkov 2 months ago
On Wed, Jul 30, 2025 at 08:01:10PM +0530, Nilesh Laad wrote:
> Currently edid_read has value from previous connect session
> and resulting in drm using older edid before new edid is available
> in lt9611uxc.
> Reset edid_read so that correct status is updated and correct edid
> is available for drm.
> 
> Signed-off-by: Nilesh Laad <nilesh.laad@oss.qualcomm.com>
> ---
>  drivers/gpu/drm/bridge/lontium-lt9611uxc.c | 3 +++
>  1 file changed, 3 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>


-- 
With best wishes
Dmitry