Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp80808yba; Mon, 1 Apr 2019 02:08:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzJiPy5vYCN244zBq5b/N00I4hYBRNIEvjahd2GvymLQBWT9CSQfHdSGVhn+c8fh7qh7/G X-Received: by 2002:a65:6205:: with SMTP id d5mr4209222pgv.61.1554109691214; Mon, 01 Apr 2019 02:08:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554109691; cv=none; d=google.com; s=arc-20160816; b=SNzR08RdnQZ9JqUQjG9V84+G/3fdRhIBxPE0UMBhwbefaQ1QNGqVJ5RFK1p0nQnFK0 K46Tm4h7j3dM1Z52CZj3IF8VLpKCyogOC1SzZzjw4CIQHFRERwJ3n8EShp9mpgoMw08G gfGJqY5panitB0nALczRgGFSffSZDhr1ZE7oYm01AgKJMGub4Ly5d+uOn13ht9L2f6SF fUB9y90UFEZO+rlU0FuACcA2bcBw6lT7YhUu53tDQR0xuonbtpK7r7qV1NuwGsT9hU6S iz6rZDKMIfErU+oXalfl7fdBJjl5vi4pH+EnjLmD8vsdfZy2N3ITCa383mFrdfLFpzcP MrJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=BZ8WrltWqPP4tMPfMPp9A9mpGjzS4IaF8AKTpCw9yWU=; b=xUIO5g69+V5sgE3GgbefOPQULMG/8h4mZ6SWJaT3JDs1kWaOzQN6zbbZ5Wcq6nEfDC ntVrVQa5vl613RCtn3IgYvbDIcnCMW3qDOm46vrBf/vgPx1D9DDfcRnTSnEDGOaMnd06 Q5BmFMKYRjgOJ/T01EAQ6WrmbemqDaA7T4mhSMnbo5JB1u81+TarljQXd34LMCt4mOjU j4mHNsZD35FLIRG+U0deHhpxTVw60c7oxyMLcptinUx1C6u9Dy/kQEV4vJsXPilA6JnG MYkbyz9Mxhx2MQ75ZLxwgSsiZnjjtyPv0ioRWmPQ8cxPYxiE6NEGscvgDClq6BzjCrpe BP0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VOkX2W4Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si8015018pgv.328.2019.04.01.02.07.54; Mon, 01 Apr 2019 02:08:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VOkX2W4Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726388AbfDAJHR (ORCPT + 99 others); Mon, 1 Apr 2019 05:07:17 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33980 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbfDAJHQ (ORCPT ); Mon, 1 Apr 2019 05:07:16 -0400 Received: by mail-qk1-f194.google.com with SMTP id n68so5139632qka.1 for ; Mon, 01 Apr 2019 02:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=BZ8WrltWqPP4tMPfMPp9A9mpGjzS4IaF8AKTpCw9yWU=; b=VOkX2W4QSvYLSencPw5mhAOJ/JAf/cp7EM812bYSqHZqS0FErvoFeBw/m4j8bvXb7L Lq+dbTWqtzKU01LM+JfagK9P9r3akQPW9gqkwi1ma2XNqjpVct+qqzOdG579W0lkDKWj EtdvQ4K/F5TGT0rOrbndSq0GbHIkNEygg5VunoMnw+zZ9kDZ5cQzQxjTQS0V7I6nVw7J 6LN/uxlbyRHXCG7Ys7BaZRKusXOPPHh48xHOXBxPMYCFr7f0rSpzGN3We/VvBli8j3+0 QA5apJ4RnOwKiNAGUIEJXWYF8O7q0CWOvnNOQaGXvbJMAE8WVWvb2xYZ4hW9T1AxaG0o 8tJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=BZ8WrltWqPP4tMPfMPp9A9mpGjzS4IaF8AKTpCw9yWU=; b=E+/csgRO6noe/qvShNDZI1g3SUaHW3bXQeC37H5kBGrw+o1eYqJauTQKOTGZw6dknq Ovxd+Q5xS3PxKAE/pAym0Sg+NUMFhyOFOxGwiX2ZU3GP0ExjlK5r0x8hY1/tht8Ll7h+ ZvzCluH51gfQECUijjrq5qwdTfePZsdC86f2b84M2mYmsMzRfqcmzaaWzqtjkWoY/9rJ 7UdXlrUbncX65jyiKAIxS/f6ddf+KOcVuGBD5JTthRr7UKG+VtIQKrcxAHQf+F2Gk55M YIGDj/0VwrJD25WV+qD+sv5kzUaf0IJDrUYwln4dwiTTwQKNwjHcYVBY4Yb1AAQBXySz xqDg== X-Gm-Message-State: APjAAAXp+kZKiQZsgWN94RXpPN8hDB7+68Z4RlypCbhQK81bBwcvCM3v qrNKza/B3HXG/1Xhclj8uV6R1XnjkY2ZD6NJMDPL7g== X-Received: by 2002:ae9:c310:: with SMTP id n16mr48821996qkg.8.1554109635837; Mon, 01 Apr 2019 02:07:15 -0700 (PDT) MIME-Version: 1.0 References: <1553156033-13792-1-git-send-email-yannick.fertre@st.com> <8dc548ed-fc71-dd04-83b9-ee07faeb16ea@st.com> In-Reply-To: <8dc548ed-fc71-dd04-83b9-ee07faeb16ea@st.com> From: Benjamin Gaignard Date: Mon, 1 Apr 2019 11:07:04 +0200 Message-ID: Subject: Re: [PATCH] drm/stm: dw_mipi_dsi-stm: add sleep power management To: Philippe CORNU Cc: Yannick FERTRE , Thierry Reding , David Airlie , Daniel Vetter , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mar. 26 mars 2019 =C3=A0 13:57, Philippe CORNU a= =C3=A9crit : > > Dear Yannick, > Many thanks for your patch. > > Acked-by: Philippe Cornu Applied on drm-misc-next. Benjamin > > Philippe :-) > > > On 3/21/19 9:13 AM, Yannick Fertr=C3=A9 wrote: > > Implements system sleep power management ops. > > > > Signed-off-by: Yannick Fertr=C3=A9 > > --- > > 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/st= m/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 =3D dw_mipi_dsi_stm_plat_data.priv_da= ta; > > + > > + 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 =3D dw_mipi_dsi_stm_plat_data.priv_da= ta; > > + > > + DRM_DEBUG_DRIVER("\n"); > > + > > + clk_prepare_enable(dsi->pllref_clk); > > + > > + return 0; > > +} > > + > > +static const struct dev_pm_ops dw_mipi_dsi_stm_pm_ops =3D { > > + SET_SYSTEM_SLEEP_PM_OPS(dw_mipi_dsi_stm_suspend, > > + dw_mipi_dsi_stm_resume) > > +}; > > + > > static struct platform_driver dw_mipi_dsi_stm_driver =3D { > > .probe =3D dw_mipi_dsi_stm_probe, > > .remove =3D dw_mipi_dsi_stm_remove, > > .driver =3D { > > .of_match_table =3D dw_mipi_dsi_stm_dt_ids, > > .name =3D "stm32-display-dsi", > > + .pm =3D &dw_mipi_dsi_stm_pm_ops, > > }, > > }; > > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel