From patchwork Mon Apr 14 06:09:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 3976521 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 DF8BA9F464 for ; Mon, 14 Apr 2014 06:10:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 19293201BF for ; Mon, 14 Apr 2014 06:10:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1E5FE201C8 for ; Mon, 14 Apr 2014 06:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751475AbaDNGJ7 (ORCPT ); Mon, 14 Apr 2014 02:09:59 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:48848 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751356AbaDNGJ5 (ORCPT ); Mon, 14 Apr 2014 02:09:57 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N4000ELUBSKRS70@mailout2.samsung.com>; Mon, 14 Apr 2014 15:09:56 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.115]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 77.5E.12635.4BB7B435; Mon, 14 Apr 2014 15:09:56 +0900 (KST) X-AuditID: cbfee68d-b7fcd6d00000315b-08-534b7bb4b3be Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 97.A1.28157.3BB7B435; Mon, 14 Apr 2014 15:09:56 +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 <0N400097VBSIQI40@mmp2.samsung.com>; Mon, 14 Apr 2014 15:09:55 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-samsung-soc@vger.kernel.org, kyungmin.park@samsung.com, inki.dae@samsung.com, seanpaul@chromium.org, a.hajda@samsung.com, kgene.kim@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com Subject: [PATCH 2/9] drm/exynos: dpi: fix hotplug fail issue Date: Mon, 14 Apr 2014 15:09:47 +0900 Message-id: <1397455794-7759-3-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1397455794-7759-1-git-send-email-inki.dae@samsung.com> References: <1397455794-7759-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrKIsWRmVeSWpSXmKPExsWyRsSkWHdLtXewwecrXBa31p1jteg9d5LJ Yv4RIOvK1/dsFv1vFrJanHu1ktFi0v0JLBYv7l1ksehdcJXN4mzTG3aLGef3MVksvX6RyWLC 9LUsFq17j7Bb3N1wltFixuSXbA4CHmvmrWH0mN1wkcXjcl8vk8fK5V/YPDat6mTz2P7tAavH /e7jTB59W1YxenzeJBfAGcVlk5Kak1mWWqRvl8CVse73SZaCU5wVbWsfszUwLuDoYuTkkBAw kThw/TwrhC0mceHeerYuRi4OIYGljBL/Htxmhik6+fQuI4gtJDCdUeLrQUWIom4micm9G5hA EmwCqhITV9xnA7FFBEwlOiYtZQEpYhZ4yCSxYgVINweHsICNxPfdVSA1LED1K97OB1vAK+As sWXu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8uKK3MPMUpwMCuJ8G7L 8AoW4k1JrKxKLcqPLyrNSS0+xJgMdNNEZinR5HxgeskriTc0NjEzsjQyN7QwMjYnTVhJnPdg q3WgkEB6YklqdmpqQWoRzBYmDk6pBsZ4Bkchjs+xRpnFvU2qlUKt37afkuDoXnXt/rblK5o3 7fu0QnbX/5Mcvvue+f9d0SRz/67OuoeGSy6+CH0+O+TemmuWrzbX9NQc9Rfs//9xPZtMlNon lqeTP955M2tvpaJ6RpfA3UsXDG/tlDpQVfw4YdbyX4fmLjJREGZaUWx54FkXzwL2qJuGSizF GYmGWsxFxYkAR4YbWSUDAAA= 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 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,