From patchwork Thu Nov 26 12:47:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 7706501 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5858DC05CA for ; Thu, 26 Nov 2015 12:47:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DDB02060E for ; Thu, 26 Nov 2015 12:47:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9FDB220693 for ; Thu, 26 Nov 2015 12:47:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751173AbbKZMr0 (ORCPT ); Thu, 26 Nov 2015 07:47:26 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:59997 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbbKZMr0 (ORCPT ); Thu, 26 Nov 2015 07:47:26 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NYF02G6MA6YPTE0@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 26 Nov 2015 21:47:22 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.114]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id 40.B0.29659.A5FF6565; Thu, 26 Nov 2015 21:47:22 +0900 (KST) X-AuditID: cbfee690-f79e96d0000073db-64-5656ff5ac52a Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id BF.A3.24993.A5FF6565; Thu, 26 Nov 2015 21:47:22 +0900 (KST) Received: from localhost.localdomain ([10.252.83.67]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NYF00EHJA6XJCF0@mmp1.samsung.com>; Thu, 26 Nov 2015 21:47:22 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, linux-samsung-soc@vger.kernel.org, javier@osg.samsung.com, Inki Dae Subject: [PATCH 2/2] drm/exynos: dp: fix wrong return type Date: Thu, 26 Nov 2015 21:47:20 +0900 Message-id: <1448542040-22057-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1448542040-22057-1-git-send-email-inki.dae@samsung.com> References: <1448542040-22057-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRmVeSWpSXmKPExsWyRsSkSDfqf1iYwebPaha9504yWVz5+p7N YtL9CSwWb96uYbKYcX4fkwOrx/ZvD1g97ncfZ/LY0n+X3aNvyypGj8+b5AJYo7hsUlJzMstS i/TtErgytm38xVLwmL1iXes29gbGzWxdjJwcEgImEgeO/GeGsMUkLtxbDxTn4hASWMEo8f/Y ZHaYotdvvkAlljJKzLrVygLhfGeU+LD+ISNIFZuAqsTEFffBxooIKEv8nbgKLM4sUCSxZP8J sBXCAlYSDd3TwGpYgOr3fD/P1MXIwcEr4CJx9nMSxDI5iZPHJrOC2JwCrhI/v/SDtQoBlaw+ NpMdZK+EQDu7xLlry5gh5ghIfJt8iAVkjoSArMSmA1DfSEocXHGDZQKj8AJGhlWMoqkFyQXF SelFJnrFibnFpXnpesn5uZsYgSF9+t+zCTsY7x2wPsQowMGoxMNbYBsWJsSaWFZcmXuI0RRo w0RmKdHkfGDk5JXEGxqbGVmYmpgaG5lbmimJ876W+hksJJCeWJKanZpakFoUX1Sak1p8iJGJ g1OqgTEswnki48pMVtMP/r2paiuOO5p1MfzznCd/eD3P77feYU3dv1082yJF139f5pMR+//L VjbuUIuvn1a2btqoMkuYU9voZf8blen6Ms/OH9rkmW0SvONCnILbuZJj0/u/me0tsCh+WfD0 5KuOyugdcbyMryL+bLfkDV61t1ExU75T+qdkIK92lhJLcUaioRZzUXEiAHydNcdkAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsVy+t9jAd2o/2FhBvePKFn0njvJZHHl63s2 i0n3J7BYvHm7hslixvl9TA6sHtu/PWD1uN99nMljS/9ddo++LasYPT5vkgtgjWpgtMlITUxJ LVJIzUvOT8nMS7dV8g6Od443NTMw1DW0tDBXUshLzE21VXLxCdB1y8wB2q6kUJaYUwoUCkgs LlbSt8M0ITTETdcCpjFC1zckCK7HyAANJKxhzNi28RdLwWP2inWt29gbGDezdTFyckgImEi8 fvMFyhaTuHBvPZDNxSEksJRRYtatVhYI5zujxIf1DxlBqtgEVCUmrrgP1iEioCzxd+IqsDiz QJHEkv0nmEFsYQEriYbuaWA1LED1e76fZ+pi5ODgFXCROPs5CWKZnMTJY5NZQWxOAVeJn1/6 wVqFgEpWH5vJPoGRdwEjwypGidSC5ILipPRcw7zUcr3ixNzi0rx0veT83E2M4Lh5JrWD8eAu 90OMAhyMSjy8BbZhYUKsiWXFlbmHGCU4mJVEeL88BArxpiRWVqUW5ccXleakFh9iNAW6ayKz lGhyPjCm80riDY1NzIwsjcwNLYyMzZXEeS/s9wsTEkhPLEnNTk0tSC2C6WPi4JRqYFxwKDrm Ji9rzEPBUK5fbLmsF39O/bjyw5RX+h5f6/vjRSc7dz52exC8MLjw2OyVFU/jV21wby9wbCze 5NbSVD/ZJGENm0pd//GVcvsmL/5f3+jYu9E0RjZgmvi5Ow/mdH9SkjV0UagwKd9ULd/rIPG1 aqNa8C3bvEqbvG/897bnb/KYr1CzWomlOCPRUIu5qDgRAHruux6xAgAA DLP-Filter: 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.9 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 This patch fixes wrong return type when dt binding of bridge device failed. If a board has a bridge device then of_graph_get_remote_port_parent function shouldn't be NULL. So this patch will return a proper error type so that the deferred probe isn't triggered. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_dp_core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_dp_core.c b/drivers/gpu/drm/exynos/exynos_dp_core.c index 0b53045..c77fb83 100644 --- a/drivers/gpu/drm/exynos/exynos_dp_core.c +++ b/drivers/gpu/drm/exynos/exynos_dp_core.c @@ -1436,8 +1436,10 @@ static int exynos_dp_probe(struct platform_device *pdev) of_node_put(bridge_node); if (!dp->ptn_bridge) return -EPROBE_DEFER; - } else - return -EPROBE_DEFER; + } else { + DRM_ERROR("no port node for bridge device.\n"); + return -ENXIO; + } } pm_runtime_enable(dev);