Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Thierry Reding
af4fab8b bca90082

+3
+3
drivers/pwm/pwm-rcar.c
··· 3 3 * R-Car PWM Timer driver 4 4 * 5 5 * Copyright (C) 2015 Renesas Electronics Corporation 6 + * 7 + * Limitations: 8 + * - The hardware cannot generate a 0% duty cycle. 6 9 */ 7 10 8 11 #include <linux/clk.h>