From: Souptick Joarder <jrdr.linux@gmail.com>
To: laurent.pinchart@ideasonboard.com, airlied@linux.ie,
ajitn.linux@gmail.com
Cc: dri-devel@lists.freedesktop.org,
linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
daniel@ffwll.ch
Subject: [PATCH] drm/rcar-du: Convert drm_atomic_helper_suspend/resume()
Date: Sat, 28 Jul 2018 21:10:07 +0530 [thread overview]
Message-ID: <20180728154007.GA28426@jordon-HP-15-Notebook-PC> (raw)
convert drm_atomic_helper_suspend/resume() to use
drm_mode_config_helper_suspend/resume().
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Signed-off-by: Ajit Negi <ajitn.linux@gmail.com>
---
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 02aee6c..288220f 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -357,32 +357,15 @@ static void rcar_du_lastclose(struct drm_device *dev)
static int rcar_du_pm_suspend(struct device *dev)
{
struct rcar_du_device *rcdu = dev_get_drvdata(dev);
- struct drm_atomic_state *state;
- drm_kms_helper_poll_disable(rcdu->ddev);
- drm_fbdev_cma_set_suspend_unlocked(rcdu->fbdev, true);
-
- state = drm_atomic_helper_suspend(rcdu->ddev);
- if (IS_ERR(state)) {
- drm_fbdev_cma_set_suspend_unlocked(rcdu->fbdev, false);
- drm_kms_helper_poll_enable(rcdu->ddev);
- return PTR_ERR(state);
- }
-
- rcdu->suspend_state = state;
-
- return 0;
+ return drm_mode_config_helper_suspend(rcdu->ddev);
}
static int rcar_du_pm_resume(struct device *dev)
{
struct rcar_du_device *rcdu = dev_get_drvdata(dev);
- drm_atomic_helper_resume(rcdu->ddev, rcdu->suspend_state);
- drm_fbdev_cma_set_suspend_unlocked(rcdu->fbdev, false);
- drm_kms_helper_poll_enable(rcdu->ddev);
-
- return 0;
+ return drm_mode_config_helper_resume(rcdu->ddev);
}
#endif
--
1.9.1
next reply other threads:[~2018-07-28 15:38 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-28 15:40 Souptick Joarder [this message]
2018-07-28 17:50 ` [PATCH] drm/rcar-du: Convert drm_atomic_helper_suspend/resume() Vaishali Thakkar
2018-07-28 18:50 ` Souptick Joarder
2018-07-28 20:20 ` Laurent Pinchart
2018-07-30 13:58 ` Souptick Joarder
2018-07-30 14:24 ` Laurent Pinchart
2018-07-30 15:13 ` Souptick Joarder
2018-07-30 15:45 ` Laurent Pinchart
2018-07-30 16:44 ` Souptick Joarder
-- strict thread matches above, loose matches on Subject: below --
2018-09-18 16:39 Souptick Joarder
2018-09-27 6:34 ` Souptick Joarder
2018-09-28 15:05 ` Laurent Pinchart
2018-09-28 15:30 ` Laurent Pinchart
[not found] ` <CAFqt6zbx2tSpnE+reNLN4pC7Br5XbgSuYP4-taxyyWraVpHoMg@mail.gmail.com>
2018-09-30 6:57 ` Laurent Pinchart
2018-10-01 6:52 ` Daniel Vetter
2018-10-01 11:56 ` Laurent Pinchart
2018-10-01 12:42 ` Noralf Trønnes
2018-10-08 16:27 ` Souptick Joarder
2018-10-11 8:18 ` Daniel Vetter
2018-10-22 8:21 ` Souptick Joarder
2018-10-23 13:40 ` Daniel Vetter
2018-10-23 14:15 ` Laurent Pinchart
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180728154007.GA28426@jordon-HP-15-Notebook-PC \
--to=jrdr.linux@gmail.com \
--cc=airlied@linux.ie \
--cc=ajitn.linux@gmail.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox