drm/rockchip: dw-dp: force-hpd get the connect status as connected

For force-hpd, It should be regard as always connected, so
it don't read the register to get the connect status.

Change-Id: I7082bb1ae56a640a43a800b9a934da7700e76de5
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
This commit is contained in:
Zhang Yubing
2024-07-16 16:46:39 +08:00
parent aa2994fbdb
commit faf338e81a

View File

@@ -1142,6 +1142,9 @@ static bool dw_dp_detect_no_power(struct dw_dp *dp)
if (dp->usbdp_hpd)
return dp->hotplug.status;
if (dp->force_hpd)
return true;
ret = regmap_read_poll_timeout(dp->regmap, DPTX_HPD_STATUS, value,
FIELD_GET(HPD_STATE, value) != SOURCE_STATE_UNPLUG,
100, 3000);