From patchwork Wed Aug 27 14:29:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ajay Kumar X-Patchwork-Id: 4788761 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 1B9D09F2A9 for ; Wed, 27 Aug 2014 14:40:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1117D200DE for ; Wed, 27 Aug 2014 14:40:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C460A200DB for ; Wed, 27 Aug 2014 14:40:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934745AbaH0Oka (ORCPT ); Wed, 27 Aug 2014 10:40:30 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:10012 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934508AbaH0Ok3 (ORCPT ); Wed, 27 Aug 2014 10:40:29 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAY006SEZFGNF90@mailout2.samsung.com> for linux-samsung-soc@vger.kernel.org; Wed, 27 Aug 2014 23:40:28 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.123]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 0D.E8.04513.CDDEDF35; Wed, 27 Aug 2014 23:40:28 +0900 (KST) X-AuditID: cbfee691-f79546d0000011a1-a0-53fdeddc0497 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D9.39.05196.CDDEDF35; Wed, 27 Aug 2014 23:40:28 +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 <0NAY00EVDZ3VVJ90@mmp1.samsung.com>; Wed, 27 Aug 2014 23:40:28 +0900 (KST) From: Ajay Kumar To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: inki.dae@samsung.com, thierry.reding@gmail.com, robdclark@gmail.com, daniel.vetter@ffwll.ch, seanpaul@google.com, ajaynumb@gmail.com, jg1.han@samsung.com, joshi@samsung.com, prashanth.g@samsung.com, Ajay Kumar Subject: [PATCH V7 07/12] drm/bridge: ptn3460: probe connector at the end of bridge attach Date: Wed, 27 Aug 2014 19:59:41 +0530 Message-id: <1409149783-12416-8-git-send-email-ajaykumar.rs@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1409149783-12416-1-git-send-email-ajaykumar.rs@samsung.com> References: <1409149783-12416-1-git-send-email-ajaykumar.rs@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsWyRsSkWvfO27/BBhNPS1kceH+QxWLDm4XM Fgsf3mW2uPL1PZvFpPsTWCwuL7zEavF91xd2ixnn9zFZrDq8gd3i+cIfzBZzD+Za/Nw1j8WB x2PvtwUsHjtn3WX3WLCp1ON+93Emj74tqxg9Pm+SC2CL4rJJSc3JLEst0rdL4Mpou/OdvWA9 R8WT35uZGxj72bsYOTkkBEwkGh5fZISwxSQu3FvP1sXIxSEksJRR4t2OhcxdjBxgRYu/l4HU CAksYpRY8iITomYCk0Tfhk9MIAk2AW2JbdNvsoDYIgJuEk2HZ7KCFDELfGOUuLBwHRtIQlgg RuL15UawIhYBVYnDbcfANvMKeEhMWP0IapmCxJxJNiBhTgFPiYc79rNCLPaQWPL4KhvEocfY JTY2WkOMEZ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NLEwsTMUkmc92CrdaCQQHpiSWp2ampBahFMHxMHp1QDY064dHHnZyPxaCehu94s 8rxdusf+MOYdtzPe5sJeWG1mnOVy3GnKrk4B6c0RPSry+WlqV+4YXr1qkdLFNr1d/Krjw++Z F3e8izk/acebzIobhtb3ju+zfhR/NDPJUEJx552w663tQt1dEVeLPq6LU3a96H/fmWNCmL7N sTANTrP3bGbOMnuVWIozEg21mIuKEwEJj3Mn0wIAAA== 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=-6.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 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 3cb3a7c..1bb4d2b 100644 --- a/drivers/gpu/drm/bridge/ptn3460.c +++ b/drivers/gpu/drm/bridge/ptn3460.c @@ -287,6 +287,7 @@ int ptn3460_bridge_attach(struct drm_bridge *bridge) struct ptn3460_bridge *ptn_bridge = bridge_to_ptn3460(bridge); int ret; + ptn_bridge->connector.polled = DRM_CONNECTOR_POLL_HPD; ret = drm_connector_init(bridge->drm, &ptn_bridge->connector, &ptn3460_connector_funcs, DRM_MODE_CONNECTOR_LVDS); if (ret) { @@ -302,6 +303,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; }