From 7f167d4f4a8c2585e9b8453e39ab2c003e362e86 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Mon, 21 May 2018 18:02:28 -0500 Subject: [PATCH] radeon_hd/dp: Fix bug in lane training. Kudos gcc7 * GCC7's static analysis found this one and it still took #gcc and me a while to spot. Nice work gcc7! * Should help DisplayPort training issues :-) Change-Id: I9b47f13c95e622a2c08ff329ec9c3fc7e3db493d --- headers/private/graphics/common/dp_raw.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/private/graphics/common/dp_raw.h b/headers/private/graphics/common/dp_raw.h index 4ce95a1050..e218e4c13d 100644 --- a/headers/private/graphics/common/dp_raw.h +++ b/headers/private/graphics/common/dp_raw.h @@ -170,12 +170,12 @@ #define DP_LANE_STATUS_CR_DONE_B (1 << 4) // Bool #define DP_LANE_STATUS_CHEQ_DONE_B (1 << 5) // Bool #define DP_LANE_STATUS_SYMB_LOCK_B (1 << 6) // Bool -#define DP_LANE_STATUS_EQUALIZED_A DP_LANE_STATUS_CR_DONE_A \ - || DP_LANE_STATUS_CHEQ_DONE_A \ - || DP_LANE_STATUS_SYMB_LOCK_A -#define DP_LANE_STATUS_EQUALIZED_B DP_LANE_STATUS_CR_DONE_B \ - || DP_LANE_STATUS_CHEQ_DONE_B \ - || DP_LANE_STATUS_SYMB_LOCK_B +#define DP_LANE_STATUS_EQUALIZED_A (DP_LANE_STATUS_CR_DONE_A \ + | DP_LANE_STATUS_CHEQ_DONE_A \ + | DP_LANE_STATUS_SYMB_LOCK_A) +#define DP_LANE_STATUS_EQUALIZED_B (DP_LANE_STATUS_CR_DONE_B \ + | DP_LANE_STATUS_CHEQ_DONE_B \ + | DP_LANE_STATUS_SYMB_LOCK_B) // DP Lane Align Status (0x0204) #define DP_LANE_ALIGN 0x0204 // Reg #define DP_LANE_ALIGN_DONE (1 << 0) // Bool