Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 41639b3

Browse files
wensrobertfoss
authored andcommitted
drm/bridge: anx7625: Use common macros for HDCP capabilities
The DRM DP code has macros for the DP HDCP capabilities. Use them in the anx7625 driver instead of raw numbers. Fixes: cd1637c ("drm/bridge: anx7625: add HDCP support") Suggested-by: Nícolas F. R. A. Prado <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]> Reviewed-by: Robert Foss <[email protected]> Signed-off-by: Robert Foss <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2ba776f commit 41639b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/bridge/analogix/anx7625.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,11 @@ static int anx7625_hdcp_enable(struct anx7625_data *ctx)
872872
}
873873

874874
/* Read downstream capability */
875-
ret = anx7625_aux_trans(ctx, DP_AUX_NATIVE_READ, 0x68028, 1, &bcap);
875+
ret = anx7625_aux_trans(ctx, DP_AUX_NATIVE_READ, DP_AUX_HDCP_BCAPS, 1, &bcap);
876876
if (ret < 0)
877877
return ret;
878878

879-
if (!(bcap & 0x01)) {
879+
if (!(bcap & DP_BCAPS_HDCP_CAPABLE)) {
880880
pr_warn("downstream not support HDCP 1.4, cap(%x).\n", bcap);
881881
return 0;
882882
}

0 commit comments

Comments
 (0)