Skip to content

pwm: add support for atomic update

Boris Brezillon linux-arm-kernel linux-fbdev linux-leds linux-pwm linux-rockchip lkml 3 versions – In review

Get series with b4
b4 am 1442828009-6241-1-git-send-email-boris.brezillon@free-electrons.com

Versions newest first · linked by author and title

  1. v3 Latest12 patches 44 repliesIn review
  2. v210 patches 7 repliesSuperseded
  3. v1 RFC0 of 15 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- rebased on top of 4.3-rc2
- reintroduced pwm-regulator patches

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12pwm: introduce default period and polarity conceptsdrivers/leds/leds-pwm.c drivers/pwm/core.c drivers/pwm/pwm-pxa.c +6 more+34 -164 replies
2/12pwm: define a new pwm_state structdrivers/pwm/core.c include/linux/pwm.h+22 -140 replies
3/12pwm: move the enabled/disabled info to pwm_state structdrivers/pwm/core.c include/linux/pwm.h+16 -60 replies
4/12backlight: pwm_bl: remove useless call to pwm_set_perioddrivers/video/backlight/pwm_bl.c+5 -31 reply
5/12pwm: declare a default PWM stateinclude/linux/pwm.h+7 -30 replies
6/12pwm: add the PWM initial state retrieval infradrivers/pwm/core.c include/linux/pwm.h+7 -00 replies
7/12pwm: add the core infrastructure to allow atomic updatedrivers/pwm/core.c include/linux/pwm.h+157 -120 replies
8/12pwm: add information about polarity, duty cycle and period to debugfsdrivers/pwm/core.c+5 -00 replies
9/12pwm: rockchip: add initial state retrievaldrivers/pwm/pwm-rockchip.c+66 -00 replies
10/12pwm: rockchip: add support for atomic updatedrivers/pwm/pwm-rockchip.c+29 -240 replies
11/12regulator: pwm: implement ->enable(), ->disable() and ->is_enabled methodsdrivers/regulator/pwm-regulator.c+29 -61 reply
12/12regulator: pwm: properly initialize the ->state fielddrivers/regulator/pwm-regulator.c+26 -01 reply

Reviews trailers per patch

3 of 12 patches have a Reviewed-by or Acked-by.

PatchRobert JarzmikMark BrownHeiko StuebnerJacek AnaszewskiLee JonesAlexandre Belloni
SeriesT-b T-b T-b T-b T-b T-b
1/12A-b A-b A-b R-b
2/12
3/12
4/12A-b
5/12
6/12
7/12
8/12
9/12
10/12
11/12
12/12A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/12] pwm: add support for atomic update

Hello,

This series adds support for atomic PWM update, or IOW, the capability to update all the parameters of a PWM device (enabled/disabled, period, duty and polarity) in one go.

Best Regards,

Boris

Changes since v2:
- rebased on top of 4.3-rc2
- reintroduced pwm-regulator patches

Changes since v1:
- dropped applied patches
- squashed Heiko's fixes into the rockchip driver changes
- made a few cosmetic changes
- added kerneldoc comments
- added Heiko's patch to display more information in debugfs
- dropped pwm-regulator patches (should be submitted separately)

Boris Brezillon (11):
pwm: introduce default period and polarity concepts
pwm: define a new pwm_state struct
pwm: move the enabled/disabled info to pwm_state struct
backlight: pwm_bl: remove useless call to pwm_set_period
pwm: declare a default PWM state
pwm: add the PWM initial state retrieval infra
pwm: add the core infrastructure to allow atomic update
pwm: rockchip: add initial state retrieval
pwm: rockchip: add support for atomic update
regulator: pwm: implement ->enable(), ->disable() and ->is_enabled
methods
regulator: pwm: properly initialize the ->state field

Heiko St?bner (1):
pwm: add information about polarity, duty cycle and period to debugfs

 drivers/leds/leds-pwm.c              |   2 +-
 drivers/pwm/core.c                   | 169 +++++++++++++++++++++++++++++++----
 drivers/pwm/pwm-pxa.c                |   2 +-
 drivers/pwm/pwm-rockchip.c           | 119 +++++++++++++++++++-----
 drivers/pwm/pwm-sun4i.c              |   3 +-
 drivers/regulator/pwm-regulator.c    |  65 ++++++++++++--
 drivers/video/backlight/lm3630a_bl.c |   4 +-
 drivers/video/backlight/pwm_bl.c     |  10 ++-
 drivers/video/fbdev/ssd1307fb.c      |   2 +-
 include/linux/pwm.h                  |  89 +++++++++++++++---
 10 files changed, 392 insertions(+), 73 deletions(-)
Signature · 1 line
1.9.1