From patchwork Thu Jul 12 06:10:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 1186751 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 4F93040B20 for ; Thu, 12 Jul 2012 06:10:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756864Ab2GLGKG (ORCPT ); Thu, 12 Jul 2012 02:10:06 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:19495 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755291Ab2GLGKF (ORCPT ); Thu, 12 Jul 2012 02:10:05 -0400 Received: from epcpsbgm2.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M7100B45AEL3YO0@mailout3.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 12 Jul 2012 15:10:04 +0900 (KST) X-AuditID: cbfee61b-b7f566d000005c8a-84-4ffe6a3b9044 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 22.DE.23690.B3A6EFF4; Thu, 12 Jul 2012 15:10:03 +0900 (KST) Received: from DOJG1HAN02 ([12.23.119.56]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M7100JYRAGRGF30@mmp2.samsung.com> for linux-fbdev@vger.kernel.org; Thu, 12 Jul 2012 15:10:03 +0900 (KST) From: Jingoo Han To: 'Florian Tobias Schandinat' Cc: linux-fbdev@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] video: exynos_dp: fix wrong DPCD address during Link Training Date: Thu, 12 Jul 2012 15:10:03 +0900 Message-id: <000901cd5ff4$fa2ffbc0$ee8ff340$%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: Ac1f9PoYchtbkBZ0Q3+qtYXHhzQMOw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrELMWRmVeSWpSXmKPExsVy+t9jQV3rrH/+BrebrS1O9H1gdWD0+LxJ LoAxissmJTUnsyy1SN8ugStj9fUtzAXfOCtev9rC3sC4lqOLkZNDQsBEYtKjH6wQtpjEhXvr 2UBsIYHpjBKz34l0MXIB2bOYJHY8vssMkmATUJP48uUwexcjB4eIgJXEpq2aIGFmAWeJCTdO gPUKC/hJ7Pi2GcxmEVCVePH9MBOIzStgK/FvcTMzhC0o8WPyPRaIXi2J9TuPM0HY8hKb17xl BhkvIaAu8eivLsQmPYnLWwIgKkQk9r14xziBUWAWkkGzkAyahWTQLCQtCxhZVjGKphYkFxQn peca6RUn5haX5qXrJefnbmIEh+Qz6R2MqxosDjEKcDAq8fBeiPznL8SaWFZcmXuIUYKDWUmE 1xEkxJuSWFmVWpQfX1Sak1p8iFGag0VJnNfE+6u/kEB6YklqdmpqQWoRTJaJg1OqgdFxoy3b at1WQeVbR7ZMnav5eh9XWRZrdMGkM7UOx5xPuE8Rmjhd4//cI5e4CoyvTw6dXdszI8hYUGB/ f+iM0xOX316xPnH2RwWFfSbftZLn8j5OmDr3hu0DvyaXYwvi2/uXXJnWlHBhyrmvFsHXDgbW HXwQ9EFq4+P6WYed9+QeXGqfvUhbVlZKiaU4I9FQi7moOBEA7nEaiEUCAAA= X-TM-AS-MML: No Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org Wrong DPCD addresses were used for clock recovery during Link Training. The training pattern should be set by TRAINING_PATTERN_SET (0x102), while voltage swing and pre-emphasis should be set by TRAINING_LANE0_SET (0x103). Signed-off-by: Jingoo Han --- drivers/video/exynos/exynos_dp_core.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/exynos/exynos_dp_core.c b/drivers/video/exynos/exynos_dp_core.c index 9db7b9f..bf55e51 100644 --- a/drivers/video/exynos/exynos_dp_core.c +++ b/drivers/video/exynos/exynos_dp_core.c @@ -304,7 +304,7 @@ static void exynos_dp_link_start(struct exynos_dp_device *dp) buf[lane] = DPCD_PRE_EMPHASIS_PATTERN2_LEVEL0 | DPCD_VOLTAGE_SWING_PATTERN1_LEVEL0; exynos_dp_write_bytes_to_dpcd(dp, - DPCD_ADDR_TRAINING_PATTERN_SET, + DPCD_ADDR_TRAINING_LANE0_SET, lane_count, buf); } @@ -504,7 +504,7 @@ static int exynos_dp_process_clock_recovery(struct exynos_dp_device *dp) buf[0] = DPCD_SCRAMBLING_DISABLED | DPCD_TRAINING_PATTERN_2; exynos_dp_write_byte_to_dpcd(dp, - DPCD_ADDR_TRAINING_LANE0_SET, + DPCD_ADDR_TRAINING_PATTERN_SET, buf[0]); for (lane = 0; lane < lane_count; lane++) {