]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
video: exynos_dp: check the only INTERLANE_ALIGN_DONE bit during Link Training
authorJingoo Han <jg1.han@samsung.com>
Tue, 17 Jul 2012 08:44:13 +0000 (17:44 +0900)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 24 Jul 2012 20:55:16 +0000 (20:55 +0000)
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 <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/exynos/exynos_dp_core.c

index bf55e5192f9bcec7c725385236ee34e23bb99156..0f3a64baecc940adff2352e2b840eae8efd45aac 100644 (file)
@@ -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++) {