lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+M3ks5uQOSW8Jf4PLSQONNL=BS_SGLcX_eC=MuK539Bebh47g@mail.gmail.com>
Date:   Mon, 1 Apr 2019 11:07:04 +0200
From:   Benjamin Gaignard <benjamin.gaignard@...aro.org>
To:     Philippe CORNU <philippe.cornu@...com>
Cc:     Yannick FERTRE <yannick.fertre@...com>,
        Thierry Reding <thierry.reding@...il.com>,
        David Airlie <airlied@...ux.ie>,
        Daniel Vetter <daniel@...ll.ch>,
        "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "linux-stm32@...md-mailman.stormreply.com" 
        <linux-stm32@...md-mailman.stormreply.com>
Subject: Re: [PATCH] drm/stm: dw_mipi_dsi-stm: add sleep power management

Le mar. 26 mars 2019 à 13:57, Philippe CORNU <philippe.cornu@...com> a écrit :
>
> Dear Yannick,
> Many thanks for your patch.
>
> Acked-by: Philippe Cornu <philippe.cornu@...com>

Applied on drm-misc-next.

Benjamin

>
> Philippe :-)
>
>
> On 3/21/19 9:13 AM, Yannick Fertré wrote:
> > Implements system sleep power management ops.
> >
> > Signed-off-by: Yannick Fertré <yannick.fertre@...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,
> >       },
> >   };
> >
> >
> _______________________________________________
> dri-devel mailing list
> dri-devel@...ts.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ