From: Jingoo Han Date: Tue, 17 Jul 2012 08:44:13 +0000 (+0900) Subject: video: exynos_dp: check the only INTERLANE_ALIGN_DONE bit during Link Training X-Git-Tag: firefly_0821_release~3680^2~2272^2~14 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1f61ce508a2e88d19045aa77f90f366251419529;p=firefly-linux-kernel-4.4.55.git 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. Signed-off-by: Jingoo Han Signed-off-by: Florian Tobias Schandinat --- diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index bf55e5192f9b..0f3a64baecc9 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -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++) {