Skip to content

pwm: Fix various bugs reported by Sashiko

Lee Jones imx linux-arm-kernel linux-pwm lkml stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v18 patches 15 repliesSuperseded

Changes in v2 from the cover letter

- 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)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pwm: mxs: Return early when disabling and fix error-path clock leakdrivers/pwm/pwm-mxs.c+19 -150 replies
2/5pwm: fsl-ftm: Enable ipg_clk around regcache_sync() during resumedrivers/pwm/pwm-fsl-ftm.c+12 -00 replies
3/5pwm: omap-dmtimer: Propagate get_pwm_status() errors in apply()drivers/pwm/pwm-omap-dmtimer.c+40 -140 replies
4/5pwm: tiehrpwm: Enable runtime PM before registering PWM chipdrivers/pwm/pwm-tiehrpwm.c+10 -93 replies
5/5pwm: img: Unregister PWM chip before disabling runtime PM and clocksdrivers/pwm/pwm-img.c+5 -40 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchAndrew Davis
1/5
2/5
3/5
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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/[email protected]/

Cc Andrew Bresticker <[email protected]>
Cc Ezequiel Garcia <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Frank Li <[email protected]>
Cc Grant Erickson <[email protected]>
Cc Joachim Eastwood <[email protected]>
Cc Lokesh Vutla <[email protected]>
Cc Naidu Tellapati <[email protected]>
Cc Neil Armstrong <[email protected]>
Cc NeilBrown <[email protected]>
Cc Pengutronix Kernel Team <[email protected]>
Cc "Philip, Avinash" <[email protected]>
Cc Rasmus Villemoes <[email protected]>
Cc Sai Masarapu <[email protected]>
Cc Sascha Hauer <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Thierry Reding <[email protected]>
Cc Uwe Kleine-König <[email protected]>
Cc Vaibhav Bedia <[email protected]>
Cc Xiubo Li <[email protected]>

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(-)
Signature · 1 line
2.56.1.750.gf70dc682cf-goog