Skip to contentSkip to conversation

video: exynos_dp: check the only INTERLANE_ALIGN_DONE bit during Link Training

PATCH Applied Jingoo Han 2 participants 2 messages Jul 17, 2012 – Jul 26, 2012

Subsystems (2)
lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 video: exynos_dp: check the only INTERLANE_ALIGN_DONE bit during Link Training

The only INTERLANE_ALIGN_DONE bit should be checked for channel equalization during Link Training. Previously, the other bits such as LINK_STATUS_UPDATED were checked, and channel equalization procedure was repeated unnecessarily.

---
 drivers/video/exynos/exynos_dp_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/exynos/exynos_dp_core.c +1 -1
index 9db7b9f..6ca8043 100644
@@ -336,7 +336,7 @@ static int exynos_dp_channel_eq_ok(u8 link_status[6], int lane_count)
 	u8 lane_status;
 
 	lane_align = link_status[2];
-	if ((lane_align = DPCD_INTERLANE_ALIGN_DONE) = 0)
+	if ((lane_align & DPCD_INTERLANE_ALIGN_DONE) = 0)
 		return -EINVAL;
 
 	for (lane = 0; lane < lane_count; lane++) {
Signature · 1 line
1.7.1
#1 lore raw
Quoted 5 lines · Jingoo Han

The only INTERLANE_ALIGN_DONE bit should be checked for channel equalization during Link Training. Previously, the other bits such as LINK_STATUS_UPDATED were checked, and channel equalization procedure was repeated unnecessarily.

Applied.

Thanks,

Florian Tobias Schandinat

Quoted 17 lines
---
 drivers/video/exynos/exynos_dp_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/exynos/exynos_dp_core.c +1 -1
index 9db7b9f..6ca8043 100644
@@ -336,7 +336,7 @@ static int exynos_dp_channel_eq_ok(u8 link_status[6], int lane_count)
 	u8 lane_status;
 
 	lane_align = link_status[2];
-	if ((lane_align = DPCD_INTERLANE_ALIGN_DONE) = 0)
+	if ((lane_align & DPCD_INTERLANE_ALIGN_DONE) = 0)
 		return -EINVAL;
 
 	for (lane = 0; lane < lane_count; lane++) {