The DP_TEST_LINK_FAUX_PATTERN field was deprecated in the DP 1.3 spec.
Update its name to align with the DP 2.1 definition and reflect its
actual use in the code. No functional changes.

v2: Comment about spec version where the bit was introduced (Konrad)

Cc: Konrad Dybcio <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Rob Clark <[email protected]>
Cc: Dmitry Baryshkov <[email protected]>
Cc: Abhinav Kumar <[email protected]>
Cc: Sean Paul <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Signed-off-by: Khaled Almahallawy <[email protected]>
---
 drivers/gpu/drm/msm/dp/dp_link.c | 2 +-
 include/drm/display/drm_dp.h     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/msm/dp/dp_link.c b/drivers/gpu/drm/msm/dp/dp_link.c
index 66e1bbd80db3..5d465cf4dbc2 100644
--- a/drivers/gpu/drm/msm/dp/dp_link.c
+++ b/drivers/gpu/drm/msm/dp/dp_link.c
@@ -665,7 +665,7 @@ static int msm_dp_link_parse_request(struct 
msm_dp_link_private *link)
                return rlen;
        }
 
-       if (!data || (data == DP_TEST_LINK_FAUX_PATTERN)) {
+       if (!data || (data == DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE)) {
                drm_dbg_dp(link->drm_dev, "link 0x%x not supported\n", data);
                goto end;
        }
diff --git a/include/drm/display/drm_dp.h b/include/drm/display/drm_dp.h
index e4eebabab975..e299a66e698d 100644
--- a/include/drm/display/drm_dp.h
+++ b/include/drm/display/drm_dp.h
@@ -849,7 +849,7 @@
 # define DP_TEST_LINK_VIDEO_PATTERN        (1 << 1)
 # define DP_TEST_LINK_EDID_READ                    (1 << 2)
 # define DP_TEST_LINK_PHY_TEST_PATTERN     (1 << 3) /* DPCD >= 1.1 */
-# define DP_TEST_LINK_FAUX_PATTERN         (1 << 4) /* DPCD >= 1.2 */
+# define DP_TEST_PHY_TEST_CHANNEL_CODING_TYPE      (1 << 4) /* DP 2.1 */
 # define DP_TEST_LINK_AUDIO_PATTERN         (1 << 5) /* DPCD >= 1.2 */
 # define DP_TEST_LINK_AUDIO_DISABLED_VIDEO  (1 << 6) /* DPCD >= 1.2 */
 
-- 
2.43.0

Reply via email to