summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorErik Schumacher <erik.schumacher@iris-sensing.com>2024-10-25 11:37:00 +0300
committerUwe Kleine-König <ukleinek@kernel.org>2024-10-25 12:29:17 +0300
commitcc6a931d1f3b412263d515fd93b21fc0ca5147fe (patch)
treec202c2fc454016c9dcb92a85a1ebe3b1da005d26 /tools/perf/scripts/python/flamegraph.py
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
downloadlinux-cc6a931d1f3b412263d515fd93b21fc0ca5147fe.tar.xz
pwm: imx-tpm: Use correct MODULO value for EPWM mode
The modulo register defines the period of the edge-aligned PWM mode (which is the only mode implemented). The reference manual states: "The EPWM period is determined by (MOD + 0001h) ..." So the value that is written to the MOD register must therefore be one less than the calculated period length. Return -EINVAL if the calculated length is already zero. A correct MODULO value is particularly relevant if the PWM has to output a high frequency due to a low period value. Fixes: 738a1cfec2ed ("pwm: Add i.MX TPM PWM driver support") Cc: stable@vger.kernel.org Signed-off-by: Erik Schumacher <erik.schumacher@iris-sensing.com> Link: https://lore.kernel.org/r/1a3890966d68b9f800d457cbf095746627495e18.camel@iris-sensing.com Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions