archive mirror
 help / color / mirror / Atom feed
From: Yoshihiro Shimoda <>
	Yoshihiro Shimoda <>
Subject: [PATCH v3 1/4] pwm: Add power management descriptions
Date: Fri, 31 May 2019 18:54:58 +0900	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

This patch adds power management descriptions that consumers should
implement it.

Signed-off-by: Yoshihiro Shimoda <>
Reviewed-by: Geert Uytterhoeven <>
 Documentation/pwm.txt | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/pwm.txt b/Documentation/pwm.txt
index 8fbf0aa..ab62f1b 100644
--- a/Documentation/pwm.txt
+++ b/Documentation/pwm.txt
@@ -65,6 +65,10 @@ period). struct pwm_args contains 2 fields (period and polarity) and should
 be used to set the initial PWM config (usually done in the probe function
 of the PWM user). PWM arguments are retrieved with pwm_get_args().
+All consumers should really be reconfiguring the PWM upon resume as
+appropriate. This is the only way to ensure that everything is resumed in
+the proper order.
 Using PWMs with the sysfs interface
@@ -141,6 +145,9 @@ The implementation of ->get_state() (a method used to retrieve initial PWM
 state) is also encouraged for the same reason: letting the PWM user know
 about the current PWM state would allow him to avoid glitches.
+Drivers should not implement any power management. In other words,
+consumers should implement it as described in the "Using PWMs" section.

  reply	other threads:[~2019-05-31  9:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-31  9:54 [PATCH v3 0/4] pwm: add power management on sysfs and switch to SPDX Yoshihiro Shimoda
2019-05-31  9:54 ` Yoshihiro Shimoda [this message]
2019-06-13 10:04   ` [PATCH v3 1/4] pwm: Add power management descriptions Simon Horman
2019-05-31  9:54 ` [PATCH v3 2/4] pwm: sysfs: Switch to SPDX identifier Yoshihiro Shimoda
2019-06-13 10:05   ` Simon Horman
2019-05-31  9:55 ` [PATCH v3 3/4] pwm: sysfs: Add suspend/resume support Yoshihiro Shimoda
2019-06-13 10:05   ` Simon Horman
2019-05-31  9:55 ` [PATCH v3 4/4] pwm: rcar: Remove " Yoshihiro Shimoda
2019-06-13 10:05   ` Simon Horman

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

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