From patchwork Thu Apr 17 05:50:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 4005691 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 C1BCB9F319 for ; Thu, 17 Apr 2014 05:50:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DA03720306 for ; Thu, 17 Apr 2014 05:50:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C64C202FF for ; Thu, 17 Apr 2014 05:50:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161041AbaDQFuk (ORCPT ); Thu, 17 Apr 2014 01:50:40 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:18691 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161054AbaDQFud (ORCPT ); Thu, 17 Apr 2014 01:50:33 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4500GSUUW7O310@mailout3.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 17 Apr 2014 14:50:31 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.116]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id B3.11.09028.7AB6F435; Thu, 17 Apr 2014 14:50:31 +0900 (KST) X-AuditID: cbfee68e-b7f566d000002344-78-534f6ba7a649 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 92.53.29263.7AB6F435; Thu, 17 Apr 2014 14:50:31 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N4500C1SUW6AQ10@mmp2.samsung.com>; Thu, 17 Apr 2014 14:50:31 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com, seanpaul@chromium.org, a.hajda@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, Inki Dae Subject: [PATCH 3/5] drm/exynos: dpi: fix hotplug fail issue Date: Thu, 17 Apr 2014 14:50:27 +0900 Message-id: <1397713829-25776-4-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1397713829-25776-1-git-send-email-inki.dae@samsung.com> References: <1397713829-25776-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrPLMWRmVeSWpSXmKPExsWyRsSkRHd5tn+wwa8Jhha31p1jteg9d5LJ 4srX92wWk+5PYLF4ce8ii8XZpjfsFjPO72OyuLvhLKPFjMkv2Rw4PWY3XGTx2P7tAavH/e7j TB59W1YxenzeJBfAGsVlk5Kak1mWWqRvl8CVse73SZaCU5wVbWsfszUwLuDoYuTgkBAwkXh7 R7SLkRPIFJO4cG89WxcjF4eQwFJGiXN7X7BAJEwkFp4+xgqRmM4o8bJ3JTOE080kcW3Oc1aQ KjYBVYmJK+6zgdgiAqYSHZOWsoAUMQscYpRYd+srWEJYwEZi85rHYDYLUMOp6WfAVvAKuEh0 z9vHAnGSgsScSTYgYU4BV4lduzaygYSFgEraJxaCjJQQWMUu8eJIFwvEGAGJb5MPQbXKSmw6 wAxxtKTEwRU3WCYwCi9gZFjFKJpakFxQnJReZKRXnJhbXJqXrpecn7uJERj4p/8969vBePOA 9SHGZKBxE5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tvfVuu9C3xoujc zZ0Tnl1c4P3O/E9+2TqLuh5mhk0zO1I4ed+u1xUr9FacoJ0ktuie/6VeY1ZVJZbijERDLeai 4kQAIpdyf/ACAAA= 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.6 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 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,