diff options
author | Archit Taneja <architt@codeaurora.org> | 2016-11-18 15:20:39 +0530 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-11-18 10:50:33 +0530 |
commit | 1bb5bd3071a79a93d467aa70fa3734fa56c26ba1 (patch) | |
tree | efd0fa381378ab7ae52382581f6a737f832c05a1 | |
parent | fa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf (diff) |
drm/msm/hdmi: wait a bit for HPD sense to come up
It can take a while for the HPD sense to come up once we've configured
it. If we call HDMI connector's detect() very soon after configuring
HPD registers, drm might think we don't have HDMI connected. Wait a
bit before we let drm use the connector funcs.
Signed-off-by: Archit Taneja <architt@codeaurora.org>
-rw-r--r-- | drivers/gpu/drm/msm/hdmi/hdmi_connector.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c index a7f729cdec7b..0995d0dd7d08 100644 --- a/drivers/gpu/drm/msm/hdmi/hdmi_connector.c +++ b/drivers/gpu/drm/msm/hdmi/hdmi_connector.c @@ -193,6 +193,13 @@ int msm_hdmi_hpd_enable(struct drm_connector *connector) HDMI_HPD_CTRL_ENABLE | hpd_ctrl); spin_unlock_irqrestore(&hdmi->reg_lock, flags); + /* + * wait for a bit so that HPD is sensed if there is a cable already + * connected. Returning early will result in someone calling the + * connnector func's detect() callback too early + */ + msleep(15); + return 0; fail: |