From patchwork Mon Jun 11 12:24:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 138231 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3990859lji; Mon, 11 Jun 2018 05:25:16 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK4CR8HiBrb+YYoVu83hmvjRK3tfXrK6DpgY9HkoH1qn0EOndlzEUOnTmDVbO1wI+bfJEMK X-Received: by 2002:a63:7c55:: with SMTP id l21-v6mr14914553pgn.352.1528719916195; Mon, 11 Jun 2018 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528719916; cv=none; d=google.com; s=arc-20160816; b=Ga0J5d7lNXxYMId9v+LDBQ8QHPeD79DcDcdsBdRsYceiKoyp6iM9X/J4z0WRIBVkFz v0Lp/seFpUOWkT82CeLjmoclrawBki/Z6TBRa0oohCGpYf7PGDJtSPgXNibOasgHDH14 OJgN1Iwmg7Fs30+Cj+zjrJNha2P7AUKTTpMfsQD3AqOK7X5ABsYz3E3SDTk3I6SKPcIc btzkRa3DUpaaUJTNZl0VB8PRhEV6hhOylKdwx9GlwizWdT5+0rqjQZRiKdfl0/irqjse llzv2zj1nxNCnybW2CF44kfg7ECG+clTw/Lzz2p/Eg+oM0kO3lS4ziHMPpEhV7N49xsj v9dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=jlY6pRvOQ45WMcM28LnzGPqsWsMcns4tGOVQXX4S+x4=; b=LjlRa4DCWuAL3PDefKyzWto7sCp2ogKzl5gL7EkcgxDff4pv7QrmsvH2hhpiWjWB3C JvfM0OW0Hs2ZzH/SNG8g+GhwvczomWslRmFbnr3YoA0fs2xbX6Y7zfamWcdJY4zxTFYA EI4A23bBZhIhNTIeXkDN3C1OvTFccRBpK5jCm2rWUWRoUIfpU2T+ntBIme6HXsPGSZZO 3PqaG9ZggbfhHHJiuYRzewvu8oatWDvc0cMXwWCnNZTdfFaX6zKR9Cs/ZeZkFBUn7dVx oqKISSgedZp2wgAfF2/OBajtrW7OA1Aj2VrA8J3JUxO0dFaRUvUisYFOPa9BmYvgrC87 7uog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=kuzNCJ3r; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y15-v6si14596657pgv.452.2018.06.11.05.25.15; Mon, 11 Jun 2018 05:25:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=kuzNCJ3r; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932925AbeFKMZP (ORCPT + 3 others); Mon, 11 Jun 2018 08:25:15 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57876 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932894AbeFKMZO (ORCPT ); Mon, 11 Jun 2018 08:25:14 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180611122512euoutp0222478b66de38adec4886d858b4fc2d28~3Gqkoym8Q1582915829euoutp02o; Mon, 11 Jun 2018 12:25:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180611122512euoutp0222478b66de38adec4886d858b4fc2d28~3Gqkoym8Q1582915829euoutp02o DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1528719912; bh=TTz0F0GooLjCqFkdIF08FfHuNjfNUdhJ4InuChlgpFs=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=kuzNCJ3ri6e7CA5kmERtdSYg//wWJEg7OYIPPA7wg9dSEq+OLNbVIdrz+qdqEYYpj XaY6z5E1U3cCL5k7EwaZMXimzkRNKGlRB+kEXmD/zZk9kkYsxWO+/5gSzlYqXqJQ6B Jsv0RtGTq3h13RCZS7mjRlTO2vKYkyfaCN2qTtD4= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180611122511eucas1p2e1f2fb5196c05bfe80ab4fc98ba91520~3GqjscH6W0810608106eucas1p2l; Mon, 11 Jun 2018 12:25:11 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 4F.0E.17380.62A6E1B5; Mon, 11 Jun 2018 13:25:11 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180611122510eucas1p192066be0ac16e18e17522a40d1fe2d1d~3GqizA5Uv0388103881eucas1p1b; Mon, 11 Jun 2018 12:25:10 +0000 (GMT) X-AuditID: cbfec7f4-b4fc79c0000043e4-ea-5b1e6a26f9c6 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id AF.54.04178.62A6E1B5; Mon, 11 Jun 2018 13:25:10 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PA500JG3RTSPN30@eusync1.samsung.com>; Mon, 11 Jun 2018 13:25:10 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Andrzej Hajda , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH 1/3] drm/exynos: Drop useless check from exynos_drm_{suspend,resume} Date: Mon, 11 Jun 2018 14:24:58 +0200 Message-id: <20180611122500.11587-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180611122500.11587-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrJIsWRmVeSWpSXmKPExsWy7djP87rqWXLRBncrLW6tO8dqsXHGelaL K1/fs1lMuj+BxeL8+Q3sFjPO72OyWHvkLpA1+SWbA4fHplWdbB73u48zefRtWcXo8XmTXABL FJdNSmpOZllqkb5dAlfG6Y/9TAWTOCs+r1RpYLzL3sXIySEhYCJxeN9Fti5GLg4hgRWMEp07 3jFDOJ8ZJV5c/cgKUzX58TNWiMQyRomZ/0+yQzgNTBIT13QyglSxCRhKdL3tYgOxRQTcJJoO zwTrYAYralkAtlBYIExi2pTNYEUsAqoSJw61M4PYvAK2Ekd3zWWBWCcvsXrDAaA4BwengJ3E rj4hkDkSAn9ZJd5Me8wIUeMi0TbrK1S9sMSr41ugHpKR6Ow4yATR0Mwo0T5jFjuE08MosXXO DjaIKmuJw8cvgj3HLMAnMWnbdLBtEgK8Eh1tQhAlHhJTFsyCenMio8TnWctYJzBKLmBkWMUo nlpanJueWmyUl1quV5yYW1yal66XnJ+7iREYgaf/Hf+yg3HXn6RDjAIcjEo8vArpstFCrIll xZW5hxglOJiVRHi9FOSihXhTEiurUovy44tKc1KLDzFKc7AoifPGadRFCQmkJ5akZqemFqQW wWSZODilGhj9XY9Pcgi55rz3p8O7N6tkrCQ6w/hkQ8NalNd113OY8NxaphvX3by84n+Anfl7 oR8xx2s2/InQ5BdZ77y/borgLKZsAVWzUrfHIuJhCZrrmTx7A2svXux3+3Hg0KLl+3u5b61Y +U7l8I7lbI+7Nh7+2LuN7X3Dx9nr1Pper/w7Kflc99ODe5KUWIozEg21mIuKEwGmXutkvAIA AA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjluLIzCtJLcpLzFFi42I5/e/4ZV21LLlog9+HBS1urTvHarFxxnpW iytf37NZTLo/gcXi/PkN7BYzzu9jslh75C6QNfklmwOHx6ZVnWwe97uPM3n0bVnF6PF5k1wA SxSXTUpqTmZZapG+XQJXxumP/UwFkzgrPq9UaWC8y97FyMkhIWAiMfnxM9YuRi4OIYEljBLt fQ/ZIZwmJolVu/6zgVSxCRhKdL3tArNFBNwkmg7PBOtgBim60rYTbJSwQJjEtCmbwYpYBFQl ThxqZwaxeQVsJY7umssCsU5eYvWGA0BxDg5OATuJXX1CIGEhoJItKyazT2DkWcDIsIpRJLW0 ODc9t9hQrzgxt7g0L10vOT93EyMwdLYd+7l5B+OljcGHGAU4GJV4eBXSZaOFWBPLiitzDzFK cDArifB6KchFC/GmJFZWpRblxxeV5qQWH2KU5mBREuc9b1AZJSSQnliSmp2aWpBaBJNl4uCU amDkOXD4S50922eRM0Fs2mbLOr2fsIf4dCR9Ktt37sTMw0c3hUr9PpmaFOi0wFrSWVvw/3rT 5P+iNvcd9m3459zQmj+zZEuPj+DqGn5zEYEDJ3giuXWun+R9PzfTbPr51ZYRXxPsebZd8m1g U72Z3/Fc8tTxT5vEF/XGV53e4RPIGxx8XeJaao0SS3FGoqEWc1FxIgApHkxbGQIAAA== X-CMS-MailID: 20180611122510eucas1p192066be0ac16e18e17522a40d1fe2d1d X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180611122510eucas1p192066be0ac16e18e17522a40d1fe2d1d References: <20180611122500.11587-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The virtual Exynos DRM device has no runtime PM enabled, so checking for its runtime suspended state is useless. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index a81b4a5e24a7..c0b4a03ae1b6 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -153,7 +153,7 @@ static int exynos_drm_suspend(struct device *dev) struct drm_device *drm_dev = dev_get_drvdata(dev); struct exynos_drm_private *private; - if (pm_runtime_suspended(dev) || !drm_dev) + if (!drm_dev) return 0; private = drm_dev->dev_private; @@ -175,8 +175,8 @@ static int exynos_drm_resume(struct device *dev) struct drm_device *drm_dev = dev_get_drvdata(dev); struct exynos_drm_private *private; - if (pm_runtime_suspended(dev) || !drm_dev) - return 0; + if (!drm_dev) + return; private = drm_dev->dev_private; drm_atomic_helper_resume(drm_dev, private->suspend_state);