]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pwm: Add power management descriptions
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 31 May 2019 09:54:58 +0000 (18:54 +0900)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 26 Jun 2019 09:39:11 +0000 (11:39 +0200)
This patch adds power management descriptions that consumers should
implement it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Documentation/pwm.txt

index 8fbf0aa3ba2d52eb17b45ed8148eb504101bb711..ab62f1bb0366e77e01c80296af669432827f7f33 100644 (file)
@@ -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.
+
 Locking
 -------