public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Small runtime PM API changes
@ 2024-01-09 13:36 Sakari Ailus
  2024-01-09 13:36 ` [PATCH 2/2] pm: runtime: Add pm_runtime_put_autosuspend() replacement Sakari Ailus
  2024-01-09 13:36 ` [PATCH 1/2] pm: runtime: Simplify pm_runtime_get_if_active() usage Sakari Ailus
  0 siblings, 2 replies; 12+ messages in thread
From: Sakari Ailus @ 2024-01-09 13:36 UTC (permalink / raw)
  To: linux-pm; +Cc: Rafael J. Wysocki, Andy Shevchenko, laurent.pinchart

Hi folks,

Here's a small but a different set of patches for making two relatively
minor changes to runtime PM API. I restarted version numbering as this is
meaningfully different from the previous set.

pm_runtime_get_if_active() loses its second argument as it only made sense
to have ign_usage_count argument true.

The other change is also small but it has an effect on callers:
pm_runtime_put_autosuspend() will, in the future, be re-purposed to
include a call to pm_runtime_mark_last_busy() as well. Before this,
current users of the function are moved to __pm_runtime_put_autosuspend()
(added by this patchset) which will continue to have the current
behaviour.

I haven't included the conversion patches in this set as I only want to do
that once this set has been approved and merged. The tree specific patches
can be found here, on linux-next master (there are some V4L2 patches
there, too, please ignore them for now):
<URL:https://git.kernel.org/pub/scm/linux/kernel/git/sailus/linux-next.git/log/?h=pm>

Later on, users calling pm_runtime_mark_last_busy() immediately followed
by __pm_runtime_put_autosuspend() will be switched back to
pm_runtime_put_autosuspend() once its behaviour change has been done (a
patch near top of that branch). I'll provide these once the preceding ones
have been merged.

Comments are welcome.

Sakari Ailus (2):
  pm: runtime: Simplify pm_runtime_get_if_active() usage
  pm: runtime: Add pm_runtime_put_autosuspend() replacement

 Documentation/power/runtime_pm.rst      | 22 ++++++++-----
 drivers/accel/ivpu/ivpu_pm.c            |  2 +-
 drivers/base/power/runtime.c            |  9 +++--
 drivers/gpu/drm/i915/intel_runtime_pm.c |  2 +-
 drivers/gpu/drm/xe/xe_pm.c              |  2 +-
 drivers/media/i2c/ccs/ccs-core.c        |  2 +-
 drivers/media/i2c/ov64a40.c             |  2 +-
 drivers/media/i2c/thp7312.c             |  2 +-
 drivers/net/ipa/ipa_smp2p.c             |  2 +-
 drivers/pci/pci.c                       |  2 +-
 include/linux/pm_runtime.h              | 44 ++++++++++++++++++++++---
 sound/hda/hdac_device.c                 |  2 +-
 12 files changed, 67 insertions(+), 26 deletions(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2024-01-10 11:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-09 13:36 [PATCH 0/2] Small runtime PM API changes Sakari Ailus
2024-01-09 13:36 ` [PATCH 2/2] pm: runtime: Add pm_runtime_put_autosuspend() replacement Sakari Ailus
2024-01-09 16:40   ` Laurent Pinchart
2024-01-09 18:56     ` Sakari Ailus
2024-01-09 13:36 ` [PATCH 1/2] pm: runtime: Simplify pm_runtime_get_if_active() usage Sakari Ailus
2024-01-09 16:28   ` Alex Elder
2024-01-09 16:37   ` Laurent Pinchart
2024-01-09 16:50   ` Takashi Iwai
2024-01-09 17:23   ` Jacek Lawrynowicz
2024-01-09 17:35   ` Rodrigo Vivi
2024-01-09 19:08     ` Sakari Ailus
2024-01-10 11:58     ` Sakari Ailus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox