From patchwork Sat Nov 15 09:55:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 5313831 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 26D69C11AD for ; Sun, 16 Nov 2014 13:57:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6E1FA201ED for ; Sun, 16 Nov 2014 13:57:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 994B220148 for ; Sun, 16 Nov 2014 13:57:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 31B8A6E58D; Sun, 16 Nov 2014 05:57:33 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 785DC6EE6B for ; Sat, 15 Nov 2014 02:01:49 -0800 (PST) Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NF2007KTRV0MA30@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Sat, 15 Nov 2014 19:01:48 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 62.56.17016.C8427645; Sat, 15 Nov 2014 19:01:48 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-e7-5467248c537e Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id FB.3D.20081.C8427645; Sat, 15 Nov 2014 19:01:48 +0900 (KST) Received: from chromebld-server.sisodomain.com ([107.108.73.106]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NF200LRLRTSF980@mmp1.samsung.com>; Sat, 15 Nov 2014 19:01:47 +0900 (KST) From: Ajay Kumar To: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org Subject: [PATCH V8 07/14] drm/bridge: ptn3460: probe connector at the end of bridge attach Date: Sat, 15 Nov 2014 15:25:02 +0530 Message-id: <1416045309-13359-8-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1416045309-13359-1-git-send-email-ajaykumar.rs@samsung.com> References: <1416045309-13359-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpikeLIzCtJLcpLzFFi42JZI2JSp9ujkh5isK5N0uLA+4MsFhveLGS2 WLb2H4vFwod3mS3mHznHanHl63s2i0n3J7BY9C64ymax6fE1VosZ5/cxWaw6vIHdYu7BXIuf u+axOPB67P22gMVj56y77B4LNpV63O8+zuSxeUm9R9+WVYwenzfJBbBHcdmkpOZklqUW6dsl cGU0dD5gKvjFXvHl+QmmBsa7bF2MnBwSAiYSb5tWMULYYhIX7q0HinNxCAksZZTYdOoxK0zR lcffoRKLGCWammeyQzgTmCTOLZgENopNQFti2/SbLCAJEYEuRon3B1aBVTELPGeUmHehgwWk SlggRmJd5wRmEJtFQFVi6pqXYDavgIdE3/8XTF2MHED7FCTmTLIBCXMKeEps/zgfrFUIqGTt wX9gZ0gIXGKX2P5wKQvEHAGJb5MPsUD0ykpsOsAMcbakxMEVN1gmMAovYGRYxSiaWpBcUJyU XmSoV5yYW1yal66XnJ+7iREYN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Do+k+5MaCX ibHv0cubq+4mBjd1mRhYLL7+Wr1s2wyLc093sd6+K/dtQZaPPaOZF9OynV0KrvkGExSeMJYV 381RZb0nK/jJjpe3I/OM57MoM80jc9aUZRuYZL1LZr3XKLLxnnHpETaFAC4hW/lgWTPJgyoP Tv2auF18wQGXms6zSk+n1EzcnaDEUpyRaKjFXFScCADye2CY3wIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-Mailman-Approved-At: Sun, 16 Nov 2014 05:57:21 -0800 Cc: kgene.kim@samsung.com, seanpaul@google.com, daniel.vetter@ffwll.ch, ajaynumb@gmail.com, bhushan.r@samsung.com, prashanth.g@samsung.com, Ajay Kumar X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 Force bridge connector detection at the end of the bridge attach. This is needed to detect the bridge connector early. Signed-off-by: Ajay Kumar --- drivers/gpu/drm/bridge/ptn3460.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/bridge/ptn3460.c b/drivers/gpu/drm/bridge/ptn3460.c index e6d5ae7..9f800a1 100644 --- a/drivers/gpu/drm/bridge/ptn3460.c +++ b/drivers/gpu/drm/bridge/ptn3460.c @@ -281,6 +281,7 @@ int ptn3460_bridge_attach(struct drm_bridge *bridge) return -ENODEV; } + ptn_bridge->connector.polled = DRM_CONNECTOR_POLL_HPD; ret = drm_connector_init(bridge->dev, &ptn_bridge->connector, &ptn3460_connector_funcs, DRM_MODE_CONNECTOR_LVDS); if (ret) { @@ -296,6 +297,8 @@ int ptn3460_bridge_attach(struct drm_bridge *bridge) if (ptn_bridge->panel) drm_panel_attach(ptn_bridge->panel, &ptn_bridge->connector); + drm_helper_hpd_irq_event(ptn_bridge->connector.dev); + return ret; }