Skip to content

add pm_runtime_last_busy_and_autosuspend() helper

Vinod Koul dri-devel intel-gfx linux-arm-kernel linux-fbdev linux-i2c linux-mmc linux-omap linux-pm linux-serial linux-spi linux-wireless lkml 1 version Applied

Status from this message: Applied to v3.19 (same as patch 11), with Charles' Ack.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest27 patches 32 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/27PM: Add helper pm_runtime_last_busy_and_autosuspend()Documentation/power/runtime_pm.txt include/linux/pm_runtime.h+10 -03 replies
2/27dmaengine: ste_dma: use pm_runtime_last_busy_and_autosuspend helperdrivers/dma/ste_dma40.c+10 -201 reply
3/27extcon: arizona: use pm_runtime_last_busy_and_autosuspend helperdrivers/extcon/extcon-arizona.c+2 -42 replies
4/27drm/i915: use pm_runtime_last_busy_and_autosuspend helperdrivers/gpu/drm/i915/intel_pm.c+1 -21 reply
5/27drm/nouveau: use pm_runtime_last_busy_and_autosuspend helperdrivers/gpu/drm/nouveau/nouveau_connector.c drivers/gpu/drm/nouveau/nouveau_drm.c+4 -80 replies
6/27drm/radeon: use pm_runtime_last_busy_and_autosuspend helperdrivers/gpu/drm/radeon/radeon_connectors.c drivers/gpu/drm/radeon/radeon_drv.c drivers/gpu/drm/radeon/radeon_kms.c+9 -171 reply
7/27vga_switcheroo: use pm_runtime_last_busy_and_autosuspend helperdrivers/gpu/vga/vga_switcheroo.c+3 -41 reply
8/27i2c: designware: use pm_runtime_last_busy_and_autosuspend helperdrivers/i2c/busses/i2c-designware-core.c+1 -20 replies
9/27i2c: omap: use pm_runtime_last_busy_and_autosuspend helperdrivers/i2c/busses/i2c-omap.c+2 -40 replies
10/27i2c: qup: use pm_runtime_last_busy_and_autosuspend helperdrivers/i2c/busses/i2c-qup.c+1 -20 replies
11/27mfd: ab8500-gpadc: use pm_runtime_last_busy_and_autosuspend helperdrivers/mfd/ab8500-gpadc.c+2 -44 replies
12/27mfd: arizona: use pm_runtime_last_busy_and_autosuspend helperdrivers/mfd/arizona-irq.c+1 -23 replies
13/27mei: use pm_runtime_last_busy_and_autosuspend helperdrivers/misc/mei/client.c+4 -80 replies
14/27mmc: use pm_runtime_last_busy_and_autosuspend helperdrivers/mmc/core/core.c+1 -20 replies
15/27mmc: mmci: use pm_runtime_last_busy_and_autosuspend helperdrivers/mmc/host/mmci.c+4 -80 replies
16/27mmc: omap_hsmmc: use pm_runtime_last_busy_and_autosuspend helperdrivers/mmc/host/omap_hsmmc.c+4 -150 replies
17/27mmc: sdhci-pxav3: use pm_runtime_last_busy_and_autosuspend helperdrivers/mmc/host/sdhci-pxav3.c+2 -40 replies
18/27mmc: sdhci: use pm_runtime_last_busy_and_autosuspend helperdrivers/mmc/host/sdhci.c+1 -20 replies
19/27NFC: trf7970a: use pm_runtime_last_busy_and_autosuspend helperdrivers/nfc/trf7970a.c+1 -20 replies
20/27pm2301-charger: use pm_runtime_last_busy_and_autosuspend helperdrivers/power/pm2301_charger.c+1 -20 replies
21/27spi: omap2-mcspi: use pm_runtime_last_busy_and_autosuspend helperdrivers/spi/spi-omap2-mcspi.c+3 -63 replies
22/27spi: orion: use pm_runtime_last_busy_and_autosuspend helperdrivers/spi/spi-orion.c+1 -21 reply
23/27spi: ti-qspi: use pm_runtime_last_busy_and_autosuspend helperdrivers/spi/spi-ti-qspi.c+2 -31 reply
24/27spi: core: use pm_runtime_last_busy_and_autosuspend helperdrivers/spi/spi.c+2 -41 reply
25/27tty: serial: omap: use pm_runtime_last_busy_and_autosuspend helperdrivers/tty/serial/omap-serial.c+20 -400 replies
26/27usb: musb: omap2430: use pm_runtime_last_busy_and_autosuspend helperdrivers/usb/musb/omap2430.c+2 -40 replies
27/27video: fbdev: use pm_runtime_last_busy_and_autosuspend helperdrivers/video/fbdev/auo_k190x.c+3 -60 replies

Reviews trailers per patch

10 of 27 patches have a Reviewed-by or Acked-by.

PatchAlex DeucherChanwoo ChoiCharles KeepaxMark BrownLinus Walleij
1/27
2/27R-b
3/27A-b A-b
4/27
5/27
6/27A-b
7/27A-b
8/27
9/27
10/27
11/27A-b
12/27A-b
13/27
14/27
15/27
16/27
17/27
18/27
19/27
20/27
21/27A-b
22/27A-b
23/27A-b
24/27A-b
25/27
26/27
27/27

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

Read the v1 thread

Cover letter [PATCH 00/27] add pm_runtime_last_busy_and_autosuspend() helper

This patch series adds a simple macro pm_runtime_last_busy_and_autosuspend() which invokes pm_runtime_mark_last_busy() and pm_runtime_put_autosuspend() sequentially. Then we do a tree wide update of current patterns which are present. As evident from log below this pattern is frequent in the kernel.

This series can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/slave-dma.git
topic/pm_runtime_last_busy_and_autosuspend

Fengguang's kbuild has tested it so it shouldn't break things for anyone. Barring one patch (explictyly mentioned in its changelog) rest are simple replacements.

If all are okay, this should be merged thru PM tree as it depends on macro addition.

Subhransu S. Prusty (1):
PM: Add helper pm_runtime_last_busy_and_autosuspend()

Vinod Koul (26):
dmaengine: ste_dma: use pm_runtime_last_busy_and_autosuspend helper
extcon: arizona: use pm_runtime_last_busy_and_autosuspend helper drm/i915: use pm_runtime_last_busy_and_autosuspend helper drm/nouveau: use pm_runtime_last_busy_and_autosuspend helper drm/radeon: use pm_runtime_last_busy_and_autosuspend helper
vga_switcheroo: use pm_runtime_last_busy_and_autosuspend helper
i2c: designware: use pm_runtime_last_busy_and_autosuspend helper
i2c: omap: use pm_runtime_last_busy_and_autosuspend helper
i2c: qup: use pm_runtime_last_busy_and_autosuspend helper
mfd: ab8500-gpadc: use pm_runtime_last_busy_and_autosuspend helper
mfd: arizona: use pm_runtime_last_busy_and_autosuspend helper
mei: use pm_runtime_last_busy_and_autosuspend helper
mmc: use pm_runtime_last_busy_and_autosuspend helper
mmc: mmci: use pm_runtime_last_busy_and_autosuspend helper
mmc: omap_hsmmc: use pm_runtime_last_busy_and_autosuspend helper
mmc: sdhci-pxav3: use pm_runtime_last_busy_and_autosuspend helper
mmc: sdhci: use pm_runtime_last_busy_and_autosuspend helper
NFC: trf7970a: use pm_runtime_last_busy_and_autosuspend helper
pm2301-charger: use pm_runtime_last_busy_and_autosuspend helper
spi: omap2-mcspi: use pm_runtime_last_busy_and_autosuspend helper
spi: orion: use pm_runtime_last_busy_and_autosuspend helper
spi: ti-qspi: use pm_runtime_last_busy_and_autosuspend helper
spi: core: use pm_runtime_last_busy_and_autosuspend helper
tty: serial: omap: use pm_runtime_last_busy_and_autosuspend helper
usb: musb: omap2430: use pm_runtime_last_busy_and_autosuspend helper
video: fbdev: use pm_runtime_last_busy_and_autosuspend helper

 Documentation/power/runtime_pm.txt          |    4 ++
 drivers/dma/ste_dma40.c                     |   30 ++++---------
 drivers/extcon/extcon-arizona.c             |    6 +--
 drivers/gpu/drm/i915/intel_pm.c             |    3 +-
 drivers/gpu/drm/nouveau/nouveau_connector.c |    3 +-
 drivers/gpu/drm/nouveau/nouveau_drm.c       |    9 +---
 drivers/gpu/drm/radeon/radeon_connectors.c  |   15 ++----
 drivers/gpu/drm/radeon/radeon_drv.c         |    5 +-
 drivers/gpu/drm/radeon/radeon_kms.c         |    6 +--
 drivers/gpu/vga/vga_switcheroo.c            |    7 +--
 drivers/i2c/busses/i2c-designware-core.c    |    3 +-
 drivers/i2c/busses/i2c-omap.c               |    6 +--
 drivers/i2c/busses/i2c-qup.c                |    3 +-
 drivers/mfd/ab8500-gpadc.c                  |    6 +--
 drivers/mfd/arizona-irq.c                   |    3 +-
 drivers/misc/mei/client.c                   |   12 ++----
 drivers/mmc/core/core.c                     |    3 +-
 drivers/mmc/host/mmci.c                     |   12 ++----
 drivers/mmc/host/omap_hsmmc.c               |   19 ++-------
 drivers/mmc/host/sdhci-pxav3.c              |    6 +--
 drivers/mmc/host/sdhci.c                    |    3 +-
 drivers/nfc/trf7970a.c                      |    3 +-
 drivers/power/pm2301_charger.c              |    3 +-
 drivers/spi/spi-omap2-mcspi.c               |    9 +---
 drivers/spi/spi-orion.c                     |    3 +-
 drivers/spi/spi-ti-qspi.c                   |    5 +-
 drivers/spi/spi.c                           |    6 +--
 drivers/tty/serial/omap-serial.c            |   60 +++++++++------------------
 drivers/usb/musb/omap2430.c                 |    6 +--
 drivers/video/fbdev/auo_k190x.c             |    9 +---
 include/linux/pm_runtime.h                  |    6 +++
 31 files changed, 97 insertions(+), 177 deletions(-)

Thanks

Signature · 1 line
~Vinod