Skip to content

Commit 330140d

Browse files
Xin-ANXrobertfoss
authored andcommitted
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. Signed-off-by: Xin Ji <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 61df9ca commit 330140d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,9 @@ static int _anx7625_hpd_polling(struct anx7625_data *ctx,
14641464
if (ctx->pdata.intp_irq)
14651465
return 0;
14661466

1467+
/* Delay 200ms for FW HPD de-bounce */
1468+
msleep(200);
1469+
14671470
ret = readx_poll_timeout(anx7625_read_hpd_status_p0,
14681471
ctx, val,
14691472
((val & HPD_STATUS) || (val < 0)),

0 commit comments

Comments
 (0)