From patchwork Tue Jul 17 08:44:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1204001 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5EDD9DF25A for ; Tue, 17 Jul 2012 08:44:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751329Ab2GQIoP (ORCPT ); Tue, 17 Jul 2012 04:44:15 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:60477 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751315Ab2GQIoO (ORCPT ); Tue, 17 Jul 2012 04:44:14 -0400 Received: from epcpsbgm1.samsung.com (mailout2.samsung.com [203.254.224.25]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7A00B6PQXJWAG0@mailout2.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Jul 2012 17:44:13 +0900 (KST) X-AuditID: cbfee61a-b7f616d000004b7e-96-500525dd418f Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 9C.02.19326.DD525005; Tue, 17 Jul 2012 17:44:13 +0900 (KST) Received: from DOJG1HAN02 ([12.23.119.56]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7A00DZYQXPJR10@mmp1.samsung.com> for linux-fbdev@vger.kernel.org; Tue, 17 Jul 2012 17:44:13 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] video: exynos_dp: check the only INTERLANE_ALIGN_DONE bit during Link Training Date: Tue, 17 Jul 2012 17:44:13 +0900 Message-id: <000c01cd63f8$57550000$05ff0000$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac1j+FdBJ2NEbGk8ShisP5kXKNQL5w== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMLMWRmVeSWpSXmKPExsVy+t9jAd27qqwBBrveiFmc6PvA6sDo8XmT XABjFJdNSmpOZllqkb5dAlfGoxmz2Qs2sVf82pLUwDifrYuRk0NCwERi/qGVTBC2mMSFe+uB 4lwcQgKLGCWOHF3LBOHMYpJYPf0VI0gVm4CaxJcvh9m7GDk4RASsJDZt1QQJMws4S0y4cQJs qLBAosS3rsPMIDaLgKrEh/ufwBbwCthKvH65gxnCFpT4MfkeC0SvlsT6nceZIGx5ic1r3jKD jJcQUJd49FcXJCwioCexbP5tVogSEYl9L94xTmAUmIVk0iwkk2YhmTQLScsCRpZVjKKpBckF xUnpuYZ6xYm5xaV56XrJ+bmbGMFB+UxqB+PKBotDjAIcjEo8vA9VWAOEWBPLiitzDzFKcDAr ifBKiwKFeFMSK6tSi/Lji0pzUosPMUpzsCiJ8xp7f/UXEkhPLEnNTk0tSC2CyTJxcEo1MOrL 95cLz7ayZ5WyNJlve+dN8ZK1O+/vOfImcvGb95yF/2K3dzlMyT/aaVfw/tvs8ND/ucX5+tq7 nhm+cfH8+Kf/Ta8uv1PiJInrO7lZ3FIWLHpdfk/q54cV1wNVdjRnBK0Ji/pnxBQ84b/MnFsh R9gfhYV9EPzqWrNR/3dwrd2S715/VoT5TFJiKc5INNRiLipOBABWzqg/RgIAAA== X-TM-AS-MML: No Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org 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 --- drivers/video/exynos/exynos_dp_core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index 9db7b9f..6ca8043 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++) {