[PATCH] pwm: bcm2835: Make sure the channel is enabled after pwm_request()
Florian Fainelli
florian.fainelli at broadcom.com
Tue Nov 18 10:33:25 PST 2025
On 11/18/2025 9:43 AM, Uwe Kleine-König wrote:
> The .free callback cleared among others the enable bit PWENx in the
> control register. When the PWM is requested later again this bit isn't
> restored but the core assumes the PWM is enabled and thus skips a
> request to configure the same state as before.
>
> To fix that don't touch the hardware configuration in .free(). For
> symmetry also drop .request() and configure the mode completely in
> .apply().
>
> Fixes: e5a06dc5ac1f ("pwm: Add BCM2835 PWM driver")
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
Reviewed-by: Florian Fainelli <florian.fainelli at broadcom.com>
--
Florian
More information about the linux-rpi-kernel
mailing list