From patchwork Thu Jan 5 06:45:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 9498511 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EEBFF606E0 for ; Thu, 5 Jan 2017 06:52:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF6AD27C7A for ; Thu, 5 Jan 2017 06:52:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D3EB527F90; Thu, 5 Jan 2017 06:52:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 562D627F89 for ; Thu, 5 Jan 2017 06:52:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757794AbdAEGsc (ORCPT ); Thu, 5 Jan 2017 01:48:32 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:59985 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754433AbdAEGqy (ORCPT ); Thu, 5 Jan 2017 01:46:54 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJA014PTO4WU7B0@mailout3.samsung.com>; Thu, 05 Jan 2017 15:46:08 +0900 (KST) Received: from epsmges5p2.samsung.com (unknown [182.195.40.66]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170105064608epcas1p229d83c10c8a74a037a59a3a3d68116da~WzTg9ugNm0474604746epcas1p2o; Thu, 5 Jan 2017 06:46:08 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2.samsung.com (EPCPMTA) with SMTP id 3B.17.29876.0BBED685; Thu, 5 Jan 2017 15:46:08 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20170105064608epcas5p373b4b3b7669411ef6dd3b35cc30fe6aa~WzTgpIc_82363823638epcas5p31; Thu, 5 Jan 2017 06:46:08 +0000 (GMT) X-AuditID: b6c32a2d-f79a76d0000074b4-0b-586debb07710 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id E0.90.28332.0BBED685; Thu, 5 Jan 2017 15:46:08 +0900 (KST) Received: from khg_DeskTop.10.32.193.11 ([10.113.63.38]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJA002VGO4S5WB0@mmp1.samsung.com>; Thu, 05 Jan 2017 15:46:08 +0900 (KST) From: Hoegeun Kwon To: robh@kernel.org, thierry.reding@gmail.com, airlied@linux.ie, kgene@kernel.org, krzk@kernel.org, inki.dae@samsung.com Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, a.hajda@samsung.com, cw00.choi@samsung.com, jh80.chung@samsung.com, Hoegeun Kwon Subject: [PATCH v6 2/4] drm/exynos: mic: Fix parse_dt function Date: Thu, 05 Jan 2017 15:45:48 +0900 Message-id: <1483598750-15062-3-git-send-email-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1483598750-15062-1-git-send-email-hoegeun.kwon@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgF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F9AwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCIsWRmVeSWpSXmKPExsVy+t9jAd0Nr3MjDD6eEra4te4cq0XvuZNM Fte/PGe1mH8EyL3y9T2bxfvlXWwWk+5PYLG48auN1aL/8Wtmi/PnN7BbXN41h81ixvl9TBb/ 9+xgt/i5ax6LA5/Hzll32T02repk89j+7QGrx/3u40wefVtWMXp83iQXwBblZpORmpiSWqSQ mpecn5KZl26rFBripmuhpJCXmJtqqxSh6xsSpKRQlphTCuQZGaABB+cA92AlfbsEt4x72/cw Ftzjqlh77AlzA+Mxji5GTg4JAROJy79mM0LYYhIX7q1n62Lk4hASWMoocbThDTuE84tR4s2f bcwgVWwCuhJfe64zgdgiAlUSDw4tZQGxmQU+M0pcXm4GYgsL2En0vlgHNImDg0VAVeL0dBuQ MK+Ah8SUs09YIJbJSZw8NpkVxOYU8JR4vvwKO4gtBFTTMHcbywRG3gWMDKsYJVILkguKk9Jz jfJSy/WKE3OLS/PS9ZLzczcxgmPkmfQOxsO73A8xCnAwKvHwdvzNiRBiTSwrrsw9xCjBwawk wmvxPDdCiDclsbIqtSg/vqg0J7X4EKMp0F0TmaVEk/OB8ZtXEm9oYm5ibmxgYW5paWKkJM7b OPtZuJBAemJJanZqakFqEUwfEwenVANjkVxMd0MSk91U92+rJL+euZqqJbnihN7P9/qHjvcx H3T7a8l2Sp1NyOfBgWLJ9dN75LYmuh08+tFx5mOFG0IOJ4LF3zVlPt8Y9CQ90dP72+uGsBXb l8SEsTRM+Oe4O+TcnsUP2bPkZGIFtjs69eUq6BhF3fmWlbzIOvSB/1cTyfk/ttf822WmxFKc kWioxVxUnAgAL1GUJacCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170105064608epcas5p373b4b3b7669411ef6dd3b35cc30fe6aa X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?6raM7ZqM6re8G1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzMo7IKs7JuQKS/sgqzsm5A=?= X-Global-Sender: =?UTF-8?B?SG9lZ2V1biBLd29uG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTMy9Bc3Npc3RhbnQgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170105064608epcas5p373b4b3b7669411ef6dd3b35cc30fe6aa X-RootMTR: 20170105064608epcas5p373b4b3b7669411ef6dd3b35cc30fe6aa References: <1483598750-15062-1-git-send-email-hoegeun.kwon@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The OF graph is not necessary because the panel is a child of dsi. therefore, the parse_dt function of dsi does not need to check the remote_node connected to the panel. and the whole parse_dt function should be refactored later. Signed-off-by: Hoegeun Kwon --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_mic.c b/drivers/gpu/drm/exynos/exynos_drm_mic.c index a0f459c..2aa61c5 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_mic.c +++ b/drivers/gpu/drm/exynos/exynos_drm_mic.c @@ -269,28 +269,9 @@ static int parse_dt(struct exynos_mic *mic) } nodes[j++] = remote_node; - switch (i) { - case ENDPOINT_DECON_NODE: - /* decon node */ - if (of_get_child_by_name(remote_node, - "i80-if-timings")) - mic->i80_mode = 1; - - break; - case ENDPOINT_DSI_NODE: - /* panel node */ - remote_node = get_remote_node(remote_node, 1); - if (!remote_node) { - ret = -EPIPE; - goto exit; - } - nodes[j++] = remote_node; - - break; - default: - DRM_ERROR("mic: Unknown endpoint from MIC"); - break; - } + if (i == ENDPOINT_DECON_NODE && + of_get_child_by_name(remote_node, "i80-if-timings")) + mic->i80_mode = 1; } exit: