video: exynos: dp: Fix typo bug in SW link training
authorSean Paul <seanpaul@chromium.org>
Sat, 14 Jul 2012 00:13:51 +0000 (17:13 -0700)
committerGerrit <chrome-bot@google.com>
Mon, 16 Jul 2012 18:26:54 +0000 (11:26 -0700)
This patch fixes a typo bug in SW link training that causes the Equalizer
training step to run twice.

BUG=chrome-os-partner:11325
TEST=Tested on snow, ensured SW link training worked

Change-Id: I1bbec5b5ca4530bffe95c0081bd56f791b8cfbe6
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/27423
Reviewed-by: Anush Elangovan <anush@google.com>
drivers/video/exynos/exynos_dp_core.c

index e4e4c6a..0e599a5 100644 (file)
@@ -333,7 +333,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++) {