diff options
| author | Uwe Kleine-König <[email protected]> | 2019-10-24 07:14:10 +0000 |
|---|---|---|
| committer | Thierry Reding <[email protected]> | 2020-01-20 11:22:30 +0000 |
| commit | af4fab8bedcfe87f297c65ded128e7ee036488c6 (patch) | |
| tree | 7f2a3ec767de234eff159cdfa78aab5b923e8858 /drivers/pwm/pwm-rcar.c | |
| parent | pwm: rcar: Drop useless call to pwm_get_state() (diff) | |
| download | kernel-af4fab8bedcfe87f297c65ded128e7ee036488c6.tar.gz kernel-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 <[email protected]>
Reviewed-by: Yoshihiro Shimoda <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-rcar.c')
| -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> |
