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
This commit is contained in:
Alexander von Gluck IV
2018-05-21 18:02:32 -05:00
parent 66e852769e
commit 7f167d4f4a
+6 -6
View File
@@ -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