mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Philippe CORNU <philippe.cornu@st.com>
To: Yannick FERTRE <yannick.fertre@st.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-stm32@st-md-mailman.stormreply.com" 
	<linux-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH] drm/stm: dw_mipi_dsi-stm: add sleep power management
Date: Tue, 26 Mar 2019 12:52:35 +0000	[thread overview]
Message-ID: <8dc548ed-fc71-dd04-83b9-ee07faeb16ea@st.com> (raw)
In-Reply-To: <1553156033-13792-1-git-send-email-yannick.fertre@st.com>

Dear Yannick,
Many thanks for your patch.

Acked-by: Philippe Cornu <philippe.cornu@st.com>

Philippe :-)


On 3/21/19 9:13 AM, Yannick Fertré wrote:
> Implements system sleep power management ops.
> 
> Signed-off-by: Yannick Fertré <yannick.fertre@st.com>
> ---
>   drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 28 ++++++++++++++++++++++++++++
>   1 file changed, 28 insertions(+)
> 
> diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> index a672b59..1bef73e 100644
> --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> @@ -356,12 +356,40 @@ static int dw_mipi_dsi_stm_remove(struct platform_device *pdev)
>   	return 0;
>   }
>   
> +static int __maybe_unused dw_mipi_dsi_stm_suspend(struct device *dev)
> +{
> +	struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data;
> +
> +	DRM_DEBUG_DRIVER("\n");
> +
> +	clk_disable_unprepare(dsi->pllref_clk);
> +
> +	return 0;
> +}
> +
> +static int __maybe_unused dw_mipi_dsi_stm_resume(struct device *dev)
> +{
> +	struct dw_mipi_dsi_stm *dsi = dw_mipi_dsi_stm_plat_data.priv_data;
> +
> +	DRM_DEBUG_DRIVER("\n");
> +
> +	clk_prepare_enable(dsi->pllref_clk);
> +
> +	return 0;
> +}
> +
> +static const struct dev_pm_ops dw_mipi_dsi_stm_pm_ops = {
> +	SET_SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend,
> +				dw_mipi_dsi_stm_resume)
> +};
> +
>   static struct platform_driver dw_mipi_dsi_stm_driver = {
>   	.probe		= dw_mipi_dsi_stm_probe,
>   	.remove		= dw_mipi_dsi_stm_remove,
>   	.driver		= {
>   		.of_match_table = dw_mipi_dsi_stm_dt_ids,
>   		.name	= "stm32-display-dsi",
> +		.pm = &dw_mipi_dsi_stm_pm_ops,
>   	},
>   };
>   
> 

  reply	other threads:[~2019-03-26 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21  8:13 Yannick Fertré
2019-03-26 12:52 ` Philippe CORNU [this message]
2019-04-01  9:07   ` Benjamin Gaignard

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=8dc548ed-fc71-dd04-83b9-ee07faeb16ea@st.com \
    --to=philippe.cornu@st.com \
    --cc=airlied@linux.ie \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=thierry.reding@gmail.com \
    --cc=yannick.fertre@st.com \
    /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

all inboxes | Powered by JetHome®