]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pwm: axi-pwmgen: Enable FORCE_ALIGN by default
authorDavid Lechner <dlechner@baylibre.com>
Wed, 9 Oct 2024 21:11:50 +0000 (16:11 -0500)
committerUwe Kleine-König <ukleinek@kernel.org>
Fri, 25 Oct 2024 09:42:36 +0000 (11:42 +0200)
commit15effedc481e69a23b374ba516d73a2bc665abe6
tree90852dec60a8a9d4384b327bcbfd0dd14e80250b
parent2e82d58c7ba8f7b4bb273ca5859b682b65654f9e
pwm: axi-pwmgen: Enable FORCE_ALIGN by default

Enable the FORCE_ALIGN flag by default in the AXI PWMGEN driver. This
flag makes the behavior of the PWM output consistent with the
description at the top of the driver file.

    * Limitations:
    * - The writes to registers for period and duty are shadowed until
    *   LOAD_CONFIG is written to AXI_PWMGEN_REG_RSTN, at which point
    *   they take effect.
    * - Writing LOAD_CONFIG also has the effect of re-synchronizing all
    *   enabled channels, which could cause glitching on other channels. It
    *   is therefore expected that channels are assigned harmonic periods
    *   and all have a single user coordinating this.

Without this flag, the PWM output does not change until the period of
all PWM output channels has run out, which makes the PWM impossible to
use in some cases because it takes too long to change the output.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20241009-pwm-axi-pwmgen-enable-force_align-v1-2-5d6ad8cbf5b4@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
drivers/pwm/pwm-axi-pwmgen.c