drm/rockchip: dw-dp: fix HDCP1.3 write Ainfo register issue

Some device DPCD Reversion is 1.2, but It can't write
Ainfo register REAUTHENTICATION_ENABLE_IRQ_HPD bit. For there
devices, it should avoid write REAUTHENTICATION_ENABLE_IRQ_HPD
bit.
It better to write REAUTHENTICATION_ENABLE_IRQ_HPD bit to Ainfo
register just when the DPCE Reversion higher than 1.2.

Change-Id: I10dcae33e8f33c9d41a05752caebc9cd085e729b
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
This commit is contained in:
Zhang Yubing
2024-04-19 10:20:07 +08:00
committed by Tao Huang
parent 71b54b4228
commit 6d87b35a1d

View File

@@ -786,7 +786,7 @@ static int _dw_dp_hdcp_enable(struct dw_dp *dp)
if (ret < 0)
return ret;
if (rev >= DP_DPCD_REV_12)
if (rev > DP_DPCD_REV_12)
regmap_update_bits(dp->regmap, DPTX_HDCPCFG, DPCD12PLUS, DPCD12PLUS);
regmap_update_bits(dp->regmap, DPTX_HDCPCFG, ENABLE_HDCP | ENABLE_HDCP_13,