From patchwork Thu Jan 17 08:50:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hoegeun Kwon X-Patchwork-Id: 10767723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F8B313BF for ; Thu, 17 Jan 2019 08:57:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E30C2EB23 for ; Thu, 17 Jan 2019 08:57:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 215462EB2A; Thu, 17 Jan 2019 08:57:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 51E2A2EB23 for ; Thu, 17 Jan 2019 08:57:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 22A9B6F324; Thu, 17 Jan 2019 08:57:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 420 seconds by postgrey-1.36 at gabe; Thu, 17 Jan 2019 08:57:54 UTC Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 48EF56F324 for ; Thu, 17 Jan 2019 08:57:54 +0000 (UTC) Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190117085051epoutp0102fcc4caac48e9a4370e150cad2a2887~6lqOmSAXt0909009090epoutp01R for ; Thu, 17 Jan 2019 08:50:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190117085051epoutp0102fcc4caac48e9a4370e150cad2a2887~6lqOmSAXt0909009090epoutp01R Received: from epsmges1p3.samsung.com (unknown [182.195.40.158]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20190117085048epcas1p2d7ac51ae467d68def6bb9da82ce5f9ce~6lqL4dDO61138011380epcas1p2y; Thu, 17 Jan 2019 08:50:48 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 4E.A8.04060.8E1404C5; Thu, 17 Jan 2019 17:50:48 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20190117085047epcas1p4d1c43063283d38514f275319060b7c70~6lqLI_nI00043200432epcas1p4l; Thu, 17 Jan 2019 08:50:47 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190117085047epsmtrp23554acac05b9a55511d977f7a8e4697a~6lqLFG6_K1842618426epsmtrp2k; Thu, 17 Jan 2019 08:50:47 +0000 (GMT) X-AuditID: b6c32a37-411ff70000000fdc-0b-5c4041e84e72 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 2B.6F.03688.7E1404C5; Thu, 17 Jan 2019 17:50:47 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.105]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190117085047epsmtip1d8f1c9758bebdad96974404839b0e1ee~6lqK6aS7b0114301143epsmtip1w; Thu, 17 Jan 2019 08:50:47 +0000 (GMT) From: Hoegeun Kwon To: maarten.lankhorst@linux.intel.com, maxime.ripard@bootlin.com, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/crtc-helper: Add store the property value Date: Thu, 17 Jan 2019 17:50:44 +0900 Message-Id: <20190117085044.19784-1-hoegeun.kwon@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA01Sa0hTYRjm29lNc3qal76m4TqRoDTdcU6P4a00O5DBJBAyQw/uOC+7sTPF C5JYhHjJTIO0EoNEWIGa15SpmCKmSRdFjCRLiVLTUjeqP7ab1L/38jzv87zf9/IR4QeOiJ+n NdIGLaXGuO7s/hfBEsnXMwkZ0ruVQUTd3DSL2O9vQIh5yzaX2O6o5hKPfvaxiZVvo4BYbpwA CTyy9WkZaba2sckB6wqHbJ1OJT/WTLHIqaH3PPJWrwkoeOkFMbk0paQNYlqbrVPmaVWx2IVL mYmZ8kgpLsGjiShMrKU0dCyWlKKQJOepbX4wcRGlLrSVFBTDYGFxMQZdoZEW5+oYYyxG65Vq fbQ+lKE0TKFWFZqt05zGpdJwuQ2YVZDbOXKHpbfwis1by7wKMM+tBm58iEbA+uZuXjVw5wvR QQA3G6yIM9kBsP13FXAmVgAbx2o4BxTTQosLZQZwtr3Jxd8D0Lx8nWdHcVEJtNQusuwNH7QZ wF+ja4i9gaAB8N3wPYe6NxoHrZ+fO8ay0ZNwf7MT2GMBGgunZm6wnHKB8EnXmEMOok1cuPLa CpyNJLgwucRzxt5wfarXFYvg7pbZtR4D55vX2U5yBYD1DfddIBkcbW+0KfBtjoJh51CY05wn 3LLUcuxliApg1U2hEx0Ev1SMudYPgC/rOlzeSNg/Uu+oC9Gr8PFGD3IbBLT8G9oGgAn40XpG o6IZXC/7/2+eAcdlhUQNgq65lHGA8gHmIaiKjM8QcqgipkQzDiAfwXwEiviEDKFASZWU0gZd pqFQTTPjQG57sQZE5Juts92p1piJy8NlMhkRgUfKcRw7IlgTPbwiRFWUkS6gaT1tOOCx+G6i CiD5sezFbK/6S6vL2r+nbuws/unRp3/KYS+lrc57eVybc6txl8pTNg+R8X4KxYmco0XHZw5P DPTlS6Oy/KfP70l3VWmv+kixl4VpK0eUC28vn2KXR8WbRs8mm2aHO7vRlTbPrsqLiePnakaK KyOOEfnCljfrKp3mQWmgb9zq7CTGZnIpPAQxMNRf0AmHO28DAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMLMWRmVeSWpSXmKPExsWy7bCSnO5zR4cYgy13dS16z51ksvi/bSKz xZWv79ks3i/vYrNY+HEri8WDl/sZLe5OPsLowO4xb021x95vC1g8tn97wOox72Sgx/3u40we x3fdYvfo27KKMYA9issmJTUnsyy1SN8ugStj/b5JTAVf2Sv2vrvL3sB4ha2LkZNDQsBEYtXV WcwgtpDAbkaJXWdzIeIyEqv6t7B2MXIA2cIShw8XdzFyAZV8YpQ4uGczWC+bgK7E157rTCC2 iMB8RonNF8xBbGag3su7Z4DVCAvYSXx7tJMVxGYRUJX4/2Y9I4jNK2Arcfx0CxPELnmJ1RsO ME9g5FnAyLCKUTK1oDg3PbfYsMAwL7Vcrzgxt7g0L10vOT93EyM4qLQ0dzBeXhJ/iFGAg1GJ h7fDzD5GiDWxrLgy9xCjBAezkghvgL1DjBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHep3nHIoUE 0hNLUrNTUwtSi2CyTBycUg2MikqTnq5OzGiuiwu8kGvaLGO4q+G7fNfjCXuVeJ9czE4+dGy9 lff0p/OVD0yc7CC7+L1mdWNKZ+fCvON6F6708KdvWRzV4Ri67qanv8jRysRCllkHD71efbPg qURWft+xbAN73vMbrl6ff06k+7D78luRfMfvTAjbkrbIpObT68CA+L/a20s9lViKMxINtZiL ihMBBoHEhSYCAAA= X-CMS-MailID: 20190117085047epcas1p4d1c43063283d38514f275319060b7c70 X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190117085047epcas1p4d1c43063283d38514f275319060b7c70 References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: hoegeun.kwon@samsung.com MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP There is a problem in crtc_helper that property value is not updated when dpms is turned on or off. So modify the property value when dpms is on. Signed-off-by: Hoegeun Kwon --- drivers/gpu/drm/drm_crtc_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index a3c81850e755..57d359f0725c 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -735,6 +735,10 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set, DRM_DEBUG_KMS("\t[CONNECTOR:%d:%s] set DPMS on\n", set->connectors[i]->base.id, set->connectors[i]->name); set->connectors[i]->funcs->dpms(set->connectors[i], DRM_MODE_DPMS_ON); + + drm_object_property_set_value(&set->connectors[i]->base, + set->connectors[i]->dev->mode_config.dpms_property, + DRM_MODE_DPMS_ON); } } __drm_helper_disable_unused_functions(dev);