diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2019-10-24 09:14:10 +0200 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2020-01-20 12:22:30 +0100 |
commit | af4fab8bedcfe87f297c65ded128e7ee036488c6 (patch) | |
tree | 7f2a3ec767de234eff159cdfa78aab5b923e8858 /drivers | |
parent | bca900829d6035a782d8209c834400ed44539c1d (diff) | |
download | linux-af4fab8bedcfe87f297c65ded128e7ee036488c6.tar.gz linux-af4fab8bedcfe87f297c65ded128e7ee036488c6.tar.bz2 linux-af4fab8bedcfe87f297c65ded128e7ee036488c6.zip |
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')
-rw-r--r-- | drivers/pwm/pwm-rcar.c | 3 |
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> |