From patchwork Sun Apr 20 10:21:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Sharma X-Patchwork-Id: 4020971 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2C2089F387 for ; Sun, 20 Apr 2014 10:22:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5B17E20256 for ; Sun, 20 Apr 2014 10:22:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 62DCA2021A for ; Sun, 20 Apr 2014 10:22:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754905AbaDTKWN (ORCPT ); Sun, 20 Apr 2014 06:22:13 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:26565 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755311AbaDTKWM (ORCPT ); Sun, 20 Apr 2014 06:22:12 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4B005XORGQJF30@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Sun, 20 Apr 2014 19:22:02 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 6F.2B.11120.ACF93535; Sun, 20 Apr 2014 19:22:02 +0900 (KST) X-AuditID: cbfee68f-b7eff6d000002b70-4d-53539fcace9e Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D4.40.27725.ACF93535; Sun, 20 Apr 2014 19:22:02 +0900 (KST) Received: from localhost.localdomain ([107.108.83.245]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4B00LC2RGD0880@mmp2.samsung.com>; Sun, 20 Apr 2014 19:22:02 +0900 (KST) From: Rahul Sharma To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: inki.dae@samsung.com, r.sh.open@gmail.com, joshi@samsung.com, Rahul Sharma Subject: [PATCH v2 1/3] drm/exynos: remove unnecessary read for phy configuration values Date: Sun, 20 Apr 2014 15:51:15 +0530 Message-id: <1397989277-29602-2-git-send-email-rahul.sharma@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1397989277-29602-1-git-send-email-rahul.sharma@samsung.com> References: <1397989277-29602-1-git-send-email-rahul.sharma@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsWyRsSkTvfU/OBgg65mLYsrX9+zWUy6P4HF 4vuuL+wWM87vY7JY+CLeYsqiw6wObB47Z91l97jffZzJo2/LKkaPz5vkAliiuGxSUnMyy1KL 9O0SuDImPrjDVHCJq6Lz/EK2BsZXHF2MHBwSAiYSm766dDFyApliEhfurWfrYuTiEBJYyijx /t5pNpiaNX+dIeLTGSW2XDzMBOG0M0ms/zGTHaSbTUBXYvbBZ4wgtoiAm0TT4ZmsIDazQLbE 4QMvweLCAlES5+d0gsVZBFQlNkz6ygZi8wp4SGy4OYEdYpmCxJxJNiAmp4CnxOmlnCAVQkAV z092gK2VEOhml5g/+RQbxBgBiW+TD7FAtMpKbDrADPGLpMTBFTdYJjAKL2BkWMUomlqQXFCc lF5krFecmFtcmpeul5yfu4kRGMqn/z3r38F494D1IcZkoHETmaVEk/OBsZBXEm9obGZkYWpi amxkbmlGmrCSOO/9h0lBQgLpiSWp2ampBalF8UWlOanFhxiZODilGh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pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Rahul Sharma Cleaning up unnecessary i2c read call after hdmiphy configuration. This check is redundant since check for hdmiphy pll lock status confirms the correct settings for phy. Signed-off-by: Rahul Sharma Signed-off-by: Daniel Kurtz Reviewed-by: Tomasz Figa --- drivers/gpu/drm/exynos/exynos_hdmi.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index ef1cdd0..438eeda 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1517,7 +1517,6 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata) const u8 *hdmiphy_data; u8 buffer[32]; u8 operation[2]; - u8 read_buffer[32] = {0, }; int ret; int i; @@ -1557,15 +1556,6 @@ static void hdmiphy_conf_apply(struct hdmi_context *hdata) return; } - ret = i2c_master_recv(hdata->hdmiphy_port, read_buffer, 32); - if (ret < 0) { - DRM_ERROR("failed to read hdmiphy config\n"); - return; - } - - for (i = 0; i < ret; i++) - DRM_DEBUG_KMS("hdmiphy[0x%02x] write[0x%02x] - " - "recv [0x%02x]\n", i, buffer[i], read_buffer[i]); } static void hdmi_conf_apply(struct hdmi_context *hdata)