pwm: rcar: Document inability to set duty_cycle = 0
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 24 Oct 2019 07:14:10 +0000 (09:14 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jan 2020 11:22:30 +0000 (12:22 +0100)
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>
drivers/pwm/pwm-rcar.c

index 6fac8eb98d54d4e4875781e75c5d34b11ae77e4d..2685577b6dd45be79719863af501d794cb24751e 100644 (file)
@@ -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>