From patchwork Tue Apr 1 12:37:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 3922081 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 835CABF54D for ; Tue, 1 Apr 2014 12:38:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B6C7A203B8 for ; Tue, 1 Apr 2014 12:38:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E23AA203AF for ; Tue, 1 Apr 2014 12:38:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 981A56E65A; Tue, 1 Apr 2014 05:38:09 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id C859C6E64E for ; Tue, 1 Apr 2014 05:38:06 -0700 (PDT) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3C00EBWR3H1S40@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 01 Apr 2014 21:38:06 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 67.CB.14803.C23BA335; Tue, 01 Apr 2014 21:38:04 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-62-533ab32c3de2 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 29.9D.29263.C23BA335; Tue, 01 Apr 2014 21:38:04 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.75.62]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3C005N9R3E6X60@mmp2.samsung.com>; Tue, 01 Apr 2014 21:38:04 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH 2/7] drm/exynos: dpi: fix hotplug fail issue Date: Tue, 01 Apr 2014 21:37:57 +0900 Message-id: <1396355882-17010-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1396355882-17010-1-git-send-email-inki.dae@samsung.com> References: <1396355882-17010-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFLMWRmVeSWpSXmKPExsWyRsSkRFdns1WwwdsLYha31p1jteg9d5LJ 4srX92wWk+5PYLE42/SG3eLuhrOMDmwesxsusnhs//aA1eN+93Emj74tqxgDWKK4bFJSczLL Uov07RK4Mtb9PslScIqzom3tY7YGxgUcXYycHBICJhLHpp9lh7DFJC7cW8/WxcjFISSwlFHi 7emnLF2MHGBFR87YQsSnM0rs7mljgXC6mSS2vb8L1s0moCoxccV9NhBbRMBUomPSUrBmZoEc iasb+EHCwgI2Emfnv2YGsVmAyldNX8QIYvMKuEice/GJFWKXgsScSTYgYU4BV4k7t2+AhYWA Sq5vKgLZKiHQzy6xr/klG8QYAYlvkw9BnSkrsekAM8QrkhIHV9xgmcAovICRYRWjaGpBckFx UnqRqV5xYm5xaV66XnJ+7iZGYDif/vds4g7G+wesDzEmA42byCwlmpwPjIe8knhDYzMjC1MT U2Mjc0sz0oSVxHnTHyUFCQmkJ5akZqemFqQWxReV5qQWH2Jk4uCUamAMNpjb4rZy58yLi586 Pr7oo7niqMCtLjF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-CFilter-Loop: Reflected Cc: a.hajda@samsung.com, kyungmin.park@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 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.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 When connector is created, if connector->polled is DRM_CONNECTOR_POLL_CONNECT then drm_kms_helper_hotplug_event function isn't called at drm_helper_hpd_irq_event because the function will be called only in case of DRM_CONNECTOR_POLL_HPD. So this patch sets always DRM_CONNECTOR_POLL_HPD flag to connector->polled of parallel panel driver at connector creation. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dpi.c b/drivers/gpu/drm/exynos/exynos_drm_dpi.c index c1f4b35..ac206e7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dpi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dpi.c @@ -123,10 +123,7 @@ static int exynos_dpi_create_connector(struct exynos_drm_display *display, ctx->encoder = encoder; - if (ctx->panel_node) - connector->polled = DRM_CONNECTOR_POLL_CONNECT; - else - connector->polled = DRM_CONNECTOR_POLL_HPD; + connector->polled = DRM_CONNECTOR_POLL_HPD; ret = drm_connector_init(encoder->dev, connector, &exynos_dpi_connector_funcs,