[PATCH v2 0/5] pwm: Fix various bugs reported by Sashiko

Lee Jones lee at kernel.org
Sun Nov 22 23:52:50 PST 2026


These issues were reported by Sashiko.

None of these changes have been tested on physical hardware.

v1 => v2:
 - Drop tegra (superseded by 9ad5602d4943) and loongson / axi-pwmgen
   (already applied)
 - mxs: Check pwm->state.enabled directly instead of calling the
   consumer helper pwm_is_enabled() (Uwe)
 - fsl-ftm: Move ipg_clk enablement after the channel loop and document
   why it is needed around regcache_sync() (Uwe)
 - omap-dmtimer: Propagate negative get_pwm_status() error codes out of
   pwm_omap_dmtimer_apply() (Uwe)
 - tiehrpwm: Clarify runtime PM state before pm_runtime_enable() in the
   commit description and match teardown ordering in ehrpwm_pwm_remove()
   (Uwe)
 - img: Clear autosuspend in img_pwm_remove() and document why driver
   data remains valid for runtime PM callbacks after pwmchip_remove()
   (Uwe)

v1: https://lore.kernel.org/all/20261105143847.2559586-1-lee@kernel.org/

Cc: Andrew Bresticker <abrestic at chromium.org>
Cc: Ezequiel Garcia <ezequiel.garcia at imgtec.com>
Cc: Fabio Estevam <festevam at gmail.com>
Cc: Frank Li <Frank.Li at nxp.com>
Cc: Grant Erickson <marathon96 at gmail.com>
Cc: imx at lists.linux.dev
Cc: Joachim Eastwood <manabian at gmail.com>
Cc: linux-arm-kernel at lists.infradead.org
Cc: linux-pwm at vger.kernel.org
Cc: Lokesh Vutla <lokeshvutla at ti.com>
Cc: Naidu Tellapati <naidu.tellapati at gmail.com>
Cc: Neil Armstrong <neil.armstrong at linaro.org>
Cc: NeilBrown <neil at brown.name>
Cc: Pengutronix Kernel Team <kernel at pengutronix.de>
Cc: "Philip, Avinash" <avinashphilip at ti.com>
Cc: Rasmus Villemoes <linux at rasmusvillemoes.dk>
Cc: Sai Masarapu <Sai.Masarapu at imgtec.com>
Cc: Sascha Hauer <s.hauer at pengutronix.de>
Cc: Shawn Guo <shawn.guo at linaro.org>
Cc: shenwei.wang at nxp.com
Cc: Thierry Reding <thierry.reding at gmail.com>
Cc: Uwe Kleine-König <ukleinek at kernel.org>
Cc: Vaibhav Bedia <vaibhav.bedia at ti.com>
Cc: Xiubo Li <Li.Xiubo at freescale.com>

Lee Jones (5):
  pwm: mxs: Return early when disabling and fix error-path clock leak
  pwm: fsl-ftm: Enable ipg_clk around regcache_sync() during resume
  pwm: omap-dmtimer: Propagate get_pwm_status() errors in apply()
  pwm: tiehrpwm: Enable runtime PM before registering PWM chip
  pwm: img: Unregister PWM chip before disabling runtime PM and clocks

 drivers/pwm/pwm-fsl-ftm.c      | 12 ++++++++
 drivers/pwm/pwm-img.c          |  9 +++---
 drivers/pwm/pwm-mxs.c          | 34 +++++++++++----------
 drivers/pwm/pwm-omap-dmtimer.c | 54 +++++++++++++++++++++++++---------
 drivers/pwm/pwm-tiehrpwm.c     | 19 ++++++------
 5 files changed, 86 insertions(+), 42 deletions(-)

-- 
2.56.1.750.gf70dc682cf-goog




More information about the linux-arm-kernel mailing list