mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user