summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin Ji <xji@analogixsemi.com>2023-09-22 12:34:49 +0300
committerRobert Foss <rfoss@kernel.org>2023-09-25 13:45:43 +0300
commit330140d7319fcc4ec68bd924ea212e476bf12275 (patch)
tree8d90c02e64be3258a0db250a681c30a9b092144d
parent61df9ca231075e7031ed3dcf8b9986dfd80050f6 (diff)
downloadlinux-330140d7319fcc4ec68bd924ea212e476bf12275.tar.xz
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 <xji@analogixsemi.com> Reviewed-by: Robert Foss <rfoss@kernel.org> Signed-off-by: Robert Foss <rfoss@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230922093450.3574349-1-xji@analogixsemi.com
-rw-r--r--drivers/gpu/drm/bridge/analogix/anx7625.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/bridge/analogix/anx7625.c
index 51abe42c639e..8f740154707d 100644
--- a/drivers/gpu/drm/bridge/analogix/anx7625.c
+++ b/drivers/gpu/drm/bridge/analogix/anx7625.c
@@ -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)),