[PATCH 0/3] PM: runtime: New class macros for auto-cleanup

Takashi Iwai posted 3 patches 1 week, 5 days ago
drivers/pci/pci-sysfs.c    |  5 +++--
include/linux/pm_runtime.h | 45 ++++++++++++++++++++++++++++++++++++--
2 files changed, 46 insertions(+), 4 deletions(-)
[PATCH 0/3] PM: runtime: New class macros for auto-cleanup
Posted by Takashi Iwai 1 week, 5 days ago
Hi,

this is a patch series to introduce the new class macros for easier
usage of PM runtime auto-cleanup features.

There is only one existing user of __free(pm_runtime_put) in PCI core,
and this is converted with CLASS() macro, too.
Then the pm_runtime_put __free definition is dropped.

The first patch was from Rafael (as found in the thread below), and I
left no sign-off as I expect he'll get and sign later again.


Link: https://lore.kernel.org/878qimv24u.wl-tiwai@suse.de

thanks,

Takashi

===

Rafael J. Wysocki (1):
  PM: runtime: Define class helpers for automatic PM runtime cleanup

Takashi Iwai (2):
  PCI: Use PM runtime class macro for the auto cleanup
  PM: runtime: Drop unused pm_runtime_free __free() definition

 drivers/pci/pci-sysfs.c    |  5 +++--
 include/linux/pm_runtime.h | 45 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 46 insertions(+), 4 deletions(-)

-- 
2.50.1
Re: [PATCH 0/3] PM: runtime: New class macros for auto-cleanup
Posted by Rafael J. Wysocki 1 week, 5 days ago
Hi,

On Fri, Sep 19, 2025 at 6:32 PM Takashi Iwai <tiwai@suse.de> wrote:
>
> Hi,
>
> this is a patch series to introduce the new class macros for easier
> usage of PM runtime auto-cleanup features.
>
> There is only one existing user of __free(pm_runtime_put) in PCI core,
> and this is converted with CLASS() macro, too.
> Then the pm_runtime_put __free definition is dropped.
>
> The first patch was from Rafael (as found in the thread below), and I
> left no sign-off as I expect he'll get and sign later again.
>
>
> Link: https://lore.kernel.org/878qimv24u.wl-tiwai@suse.de

I've just done the same thing:

https://lore.kernel.org/linux-pm/5049058.31r3eYUQgx@rafael.j.wysocki/

which I said I would do:

https://lore.kernel.org/linux-pm/CAJZ5v0jJjYoTceD2_pgvKgKuPypo+8osnAuCefgAjrzY_w2n8A@mail.gmail.com/

:-)

Sorry for the confusion.

Any issues with using my version?