Skip to content

IIO: Where dev_pm_ops rework and namespaces meet.

Jonathan Cameron linux-iio linux-pm 1 version Applied

Status from this message: Applied as 5.19 material along with the [2-3/3].

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest3 patches 2 repliesApplied

Changes in v2 from the cover letter

Just the first 3 patches so they can go via the PM tree. Remainder of series will go via IIO in due course.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3iio: chemical: scd30: Export dev_pm_ops instead of suspend() and resume()drivers/iio/chemical/scd30.h drivers/iio/chemical/scd30_core.c drivers/iio/chemical/scd30_i2c.c +1 more+7 -102 replies
2/3PM: core: Add NS varients of EXPORT[_GPL]_SIMPLE_DEV_PM_OPS and runtime pm equivinclude/linux/pm.h include/linux/pm_runtime.h+17 -70 replies
3/3iio: chemical: scd30: Move symbol exports into IIO_SCD30 namespacedrivers/iio/chemical/scd30_core.c drivers/iio/chemical/scd30_i2c.c drivers/iio/chemical/scd30_serial.c+4 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] IIO: Where dev_pm_ops rework and namespaces meet.

v2:
Just the first 3 patches so they can go via the PM tree. Remainder of series will go via IIO in due course.

Hi All,

As these two activities have been ongoing across IIO at the same time it was inevitable that there would be drivers were they both interact. In particularly when we have EXPORT* of struct dev_pm_ops.

This series covers those cases by introducing (in patch 2) EXPORT_NS[_GPL]_SIMPLE_DEV_PM_OPS() and EXPORT_NS[_GPL]_RUNTIME_DEV_PM_OPS()
that add a namespace as the final parameter.

Thanks,

Jonathan

Jonathan Cameron (3):
iio: chemical: scd30: Export dev_pm_ops instead of suspend() and
resume()
PM: core: Add NS varients of EXPORT[_GPL]_SIMPLE_DEV_PM_OPS and
runtime pm equiv
iio: chemical: scd30: Move symbol exports into IIO_SCD30 namespace

 drivers/iio/chemical/scd30.h        |  5 +----
 drivers/iio/chemical/scd30_core.c   | 10 +++++-----
 drivers/iio/chemical/scd30_i2c.c    |  3 ++-
 drivers/iio/chemical/scd30_serial.c |  3 ++-
 include/linux/pm.h                  | 14 +++++++++-----
 include/linux/pm_runtime.h          | 10 ++++++++--
 6 files changed, 27 insertions(+), 18 deletions(-)
Signature · 1 line
2.32.0