diff options
| author | 2026-05-22 16:13:48 -0300 | |
|---|---|---|
| committer | 2026-05-23 18:54:48 +0200 | |
| commit | dc9e08fdbcc3eb08a1d2b868b535081c44425e27 (patch) | |
| tree | 438fd76c73717c0e1040ee13f685d8416bb33eaa /tools/lib/python/kdoc/python_version.py | |
| parent | pwm: mediatek: correct mt7628 clock source setting (diff) | |
pwm: imx27: Fix variable truncation in .apply()
Fix a variable truncation when calculating period in microseconds as
part of the solution for the ERR051198 in .apply() callback.
Example scenario:
- Period of 3us (PWMPR = 196 and prescaler = 1)
- Expected value in tmp: 198000000000 (NSEC_PER_SEC * (196 + 2) * 1)
- Actual value is 431504384 (truncation to u32)
Signed-off-by: Ronaldo Nunez <rnunez@baylibre.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260522191348.6227-1-rnunez@baylibre.com
Fixes: a25351e4c774 ("pwm: imx27: Workaround of the pwm output bug when decrease the duty cycle")
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
