From: Fabrice Gasnier <fabrice.gasnier@st.com>
To: <thierry.reding@gmail.com>
Cc: <robh+dt@kernel.org>, <u.kleine-koenig@pengutronix.de>,
<tduszyns@gmail.com>, <mark.rutland@arm.com>,
<alexandre.torgue@st.com>, <mcoquelin.stm32@gmail.com>,
<fabrice.gasnier@st.com>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-kernel@vger.kernel.org>, <linux-pwm@vger.kernel.org>,
<linux-stm32@st-md-mailman.stormreply.com>
Subject: [RESEND PATCH v5 0/3] Add PM support to STM32 LP Timer drivers
Date: Thu, 18 Apr 2019 11:37:44 +0200 [thread overview]
Message-ID: <1555580267-29299-1-git-send-email-fabrice.gasnier@st.com> (raw)
This patch series adds power management support for STM32 LP Timer:
- PWM driver
- Document the pinctrl states for sleep mode
It also adds device link between the PWM consumer and the PWM provider.
This allows proper sequencing for suspend/resume (e.g. user will likely
do a pwm_disable() before the PWM provider suspend executes), see [1].
[1] https://lkml.org/lkml/2019/2/5/770
---
resend v5:
- update collected acks
Changes in v5:
- improve a warning message, fix a style issue.
Changes in v4:
- improve error handling when adding the PWM consumer device link.
Changes in v3:
- Move the device_link_add() call to of_pwm_get() as discussed with Uwe.
Changes in v2:
- Don't disable PWM channel in PWM provider: rather refuse to suspend
and report an error as suggested by Uwe and Thierry.
- Add patch 3/3 to propose device link addition.
- No updates for STM32 LP Timer IIO driver. Patches can be send separately.
Fabrice Gasnier (3):
dt-bindings: pwm-stm32-lp: document pinctrl sleep state
pwm: stm32-lp: Add power management support
pwm: core: add consumer device link
.../devicetree/bindings/pwm/pwm-stm32-lp.txt | 9 ++--
drivers/pwm/core.c | 50 ++++++++++++++++++++--
drivers/pwm/pwm-stm32-lp.c | 25 +++++++++++
include/linux/pwm.h | 6 ++-
4 files changed, 82 insertions(+), 8 deletions(-)
--
2.7.4
next reply other threads:[~2019-04-18 9:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-18 9:37 Fabrice Gasnier [this message]
2019-04-18 9:37 ` [RESEND PATCH v5 1/3] dt-bindings: pwm-stm32-lp: document pinctrl sleep state Fabrice Gasnier
2019-04-18 9:37 ` [RESEND PATCH v5 2/3] pwm: stm32-lp: Add power management support Fabrice Gasnier
2019-04-18 9:37 ` [RESEND PATCH v5 3/3] pwm: core: add consumer device link Fabrice Gasnier
2019-05-10 7:51 ` [RESEND PATCH v5 0/3] Add PM support to STM32 LP Timer drivers Fabrice Gasnier
2019-05-23 9:09 ` 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=1555580267-29299-1-git-send-email-fabrice.gasnier@st.com \
--to=fabrice.gasnier@st.com \
--cc=alexandre.torgue@st.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh+dt@kernel.org \
--cc=tduszyns@gmail.com \
--cc=thierry.reding@gmail.com \
--cc=u.kleine-koenig@pengutronix.de \
/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;
as well as URLs for NNTP newsgroup(s).