Skip to contentSkip to conversation

drm/bridge: Add 200ms delay to wait FW HPD status stable

PATCH Applied Xin Ji 2 participants 2 messages Sep 22, 2023 – Sep 25, 2023

Subsystems (3)
lore
Share & tools
lore

Xin Ji

author
#0 lore raw

PATCH v2 1/1 drm/bridge: Add 200ms delay to wait FW HPD status stable

For the no-interrupt design (sink device is panel, polling HPD status when chip power on), anx7625 FW has more than 200ms HPD de-bounce time in FW, for the safety to get HPD status, driver better to wait 200ms before HPD detection after OS resume back.

---
 drivers/gpu/drm/bridge/analogix/anx7625.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/bridge/analogix/anx7625.c +3 -0
index 51abe42c639e..8f740154707d 100644
@@ -1464,6 +1464,9 @@ static int _anx7625_hpd_polling(struct anx7625_data *ctx,
 	if (ctx->pdata.intp_irq)
 		return 0;
 
+	/* Delay 200ms for FW HPD de-bounce */
+	msleep(200);
+
 	ret = readx_poll_timeout(anx7625_read_hpd_status_p0,
 				 ctx, val,
 				 ((val & HPD_STATUS) || (val < 0)),
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 6 lines · Xin Ji

For the no-interrupt design (sink device is panel, polling HPD status when chip power on), anx7625 FW has more than 200ms HPD de-bounce time in FW, for the safety to get HPD status, driver better to wait 200ms before HPD detection after OS resume back.

Applied, thanks!

[1/1] drm/bridge: Add 200ms delay to wait FW HPD status stable

      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=330140d7319f

Rob