]> git.dujemihanovic.xyz Git - linux.git/commit
pwm: Fix setting period with #pwm-cells = <1> and of_pwm_single_xlate() v6.9-rc1-pxa1908
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 29 Mar 2024 10:35:40 +0000 (11:35 +0100)
committerKarel Balej <balejk@matfyz.cz>
Fri, 29 Mar 2024 10:42:27 +0000 (11:42 +0100)
commitce76f675f0c3aec2c1cc011ef93eca286575668e
tree53419a56f67c779dcea8aec1f13150d53966eb2f
parentf928228ca9b7bdb7226be19fca65cebd294ee5e0
pwm: Fix setting period with #pwm-cells = <1> and of_pwm_single_xlate()

For drivers making use of of_pwm_single_xlate() (i.e. those that don't
pass a hwpwm index) and also don't pass flags, setting period was
wrongly skipped. This affects the pwm-pxa and ti-sn65dsi86 drivers.

Reported-by: Karel Balej <balejk@matfyz.cz>
Fixes: 40ade0c2e794 ("pwm: Let the of_xlate callbacks accept references without period")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/pwm/core.c