linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] Add PM support to STM32 LP Timer drivers
@ 2019-02-14 10:25 Fabrice Gasnier
  2019-02-14 10:25 ` [PATCH v4 1/3] dt-bindings: pwm-stm32-lp: document pinctrl sleep state Fabrice Gasnier
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Fabrice Gasnier @ 2019-02-14 10:25 UTC (permalink / raw)
  To: thierry.reding, robh+dt
  Cc: mark.rutland, devicetree, alexandre.torgue, tduszyns,
	linux-kernel, linux-pwm, mcoquelin.stm32, u.kleine-koenig,
	fabrice.gasnier, linux-stm32, linux-arm-kernel

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

---
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(-)

-- 
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-02-19  9:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-14 10:25 [PATCH v4 0/3] Add PM support to STM32 LP Timer drivers Fabrice Gasnier
2019-02-14 10:25 ` [PATCH v4 1/3] dt-bindings: pwm-stm32-lp: document pinctrl sleep state Fabrice Gasnier
2019-02-18 16:45   ` Rob Herring
2019-02-14 10:25 ` [PATCH v4 2/3] pwm: stm32-lp: Add power management support Fabrice Gasnier
2019-02-14 10:25 ` [PATCH v4 3/3] pwm: core: add consumer device link Fabrice Gasnier
2019-02-18 17:22   ` Uwe Kleine-König
2019-02-19  8:46     ` Fabrice Gasnier
2019-02-19  8:55       ` Uwe Kleine-König
2019-02-19  9:54         ` Fabrice Gasnier

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).