From patchwork Fri Jun 16 07:50:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9790809 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 DBEFD60325 for ; Fri, 16 Jun 2017 07:50:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CDD0428358 for ; Fri, 16 Jun 2017 07:50:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C036928210; Fri, 16 Jun 2017 07:50:21 +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 99F6D28210 for ; Fri, 16 Jun 2017 07:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752375AbdFPHuU (ORCPT ); Fri, 16 Jun 2017 03:50:20 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:38386 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752447AbdFPHuS (ORCPT ); Fri, 16 Jun 2017 03:50:18 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170616075017epoutp04deb5baf7080dcef7815d8947c5e1d42a~Iirw-TlD91304813048epoutp04E; Fri, 16 Jun 2017 07:50:17 +0000 (GMT) Received: from epsmges5p2.samsung.com (unknown [182.195.40.66]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170616075016epcas1p149a61c959feb4e014d9f0dbeb014ff3a~IirwwVd4E2285522855epcas1p1j; Fri, 16 Jun 2017 07:50:16 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p2.samsung.com (EPCPMTA) with SMTP id 98.4F.21921.8BD83495; Fri, 16 Jun 2017 16:50:16 +0900 (KST) Received: from epsmgms2p2.samsung.com (unknown [182.195.42.80]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20170616075016epcas5p34938dd82d07390a03e7690f1634e9229~IirwZn8Tl0511505115epcas5p3k; Fri, 16 Jun 2017 07:50:16 +0000 (GMT) X-AuditID: b6c32a2d-f792a6d0000055a1-9f-59438db8d17c Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2.samsung.com (Symantec Messaging Gateway) with SMTP id C9.68.02294.8BD83495; Fri, 16 Jun 2017 16:50:16 +0900 (KST) Received: from localhost.localdomain ([10.113.62.206]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ORM00MHUR3S8KC0@mmp1.samsung.com>; Fri, 16 Jun 2017 16:50:16 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, linux-samsung-soc@vger.kernel.org, Inki Dae Subject: [PATCH] drm/exynos: dsi: do not try to find bridge Date: Fri, 16 Jun 2017 16:50:15 +0900 Message-id: <1497599415-4327-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHKsWRmVeSWpSXmKPExsWy7bCmuu6OXudIg53LLC16z51ksrjy9T2b xaT7E1gsZpzfx+TA4rH92wNWj/vdx5k8+rasYvT4vEkugCUq1SYjNTEltUghNS85PyUzL91W yTs43jne1MzAUNfQ0sJcSSEvMTfVVsnFJ0DXLTMHaKWSQlliTilQKCCxuFhJ386mKL+0JFUh I7+4xFYp2tDQSM/QwFzPyMhIz8Q41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CGIzC0RJLD+8lB3EFhawljjwbBZQMwcHC1D9ybn1IGFeAWeJ1rfd7BDL 5CROHpvMOoGRewEjwypGrtSC4tz03GKjAqNNjMDg2nZYK2AHY9O56EOMAhyMSjy8CczOkUKs iWXFlbmHGCU4mJVEeD8HA4V4UxIrq1KL8uOLSnNSiw8xmgJtnMgsJZqcDwz8vJJ4QxNLIxMD MzNDIwNjMyVx3gmBXyKEBNITS1KzU1MLUotg+pg4OKUaGF0/vvqctjSDvX75etEPol7Z7Lzl 3zNfVsWGTZK0X312a0nb/+RXOwtqzl59WPXMe2/iZvsz/1JYJU87q95boJ981CT4jGHkoYSy 9mkn8pZs/ry3I8vVfadZsL5RSmxVqd5f1r+86pyptbXS1+/9WndP8IjTe/XXru2hL30Z1X02 zzgrfq3KR4mlOCPRUIu5qDgRALMEsHtEAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170616075016epcas5p34938dd82d07390a03e7690f1634e9229 X-Msg-Generator: CA X-Sender-IP: 182.195.42.80 X-Local-Sender: =?UTF-8?B?64yA7J246riwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SW5raSBEYWUbVGl6ZW4gUGxhdGZvcm0gTGFiLhtTYW1zdW5n?= =?UTF-8?B?IEVsZWN0cm9uaWNzG1NlbmlvciBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170616075016epcas5p34938dd82d07390a03e7690f1634e9229 X-RootMTR: 20170616075016epcas5p34938dd82d07390a03e7690f1634e9229 References: 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 It doesn't need to try to find a bridge if bridge node doesn't exist. Signed-off-by: Inki Dae Reviewed-by: Shuah Khan Tested-by: Shuah Khan --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index d404de8..e337cd2 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1687,9 +1687,11 @@ static int exynos_dsi_bind(struct device *dev, struct device *master, return ret; } - bridge = of_drm_find_bridge(dsi->bridge_node); - if (bridge) - drm_bridge_attach(encoder, bridge, NULL); + if (dsi->bridge_node) { + bridge = of_drm_find_bridge(dsi->bridge_node); + if (bridge) + drm_bridge_attach(encoder, bridge, NULL); + } return mipi_dsi_host_register(&dsi->dsi_host); }