summaryrefslogtreecommitdiff
path: root/drivers/pwm/pwm-rcar.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2019-10-24 10:14:10 +0300
committerThierry Reding <thierry.reding@gmail.com>2020-01-20 14:22:30 +0300
commitaf4fab8bedcfe87f297c65ded128e7ee036488c6 (patch)
tree7f2a3ec767de234eff159cdfa78aab5b923e8858 /drivers/pwm/pwm-rcar.c
parentbca900829d6035a782d8209c834400ed44539c1d (diff)
downloadlinux-af4fab8bedcfe87f297c65ded128e7ee036488c6.tar.xz
pwm: rcar: Document inability to set duty_cycle = 0
When .apply() is called with state->duty_cycle = 0 the duty_ns parameter to rcar_pwm_set_counter() is 0 which results in ph being 0 and rcar_pwm_set_counter() returning -EINVAL. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-rcar.c')
-rw-r--r--drivers/pwm/pwm-rcar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pwm/pwm-rcar.c b/drivers/pwm/pwm-rcar.c
index 6fac8eb98d54..2685577b6dd4 100644
--- a/drivers/pwm/pwm-rcar.c
+++ b/drivers/pwm/pwm-rcar.c
@@ -3,6 +3,9 @@
* R-Car PWM Timer driver
*
* Copyright (C) 2015 Renesas Electronics Corporation
+ *
+ * Limitations:
+ * - The hardware cannot generate a 0% duty cycle.
*/
#include <linux/clk.h>