Skip to content

iio: fix bug with triggers not resuming after sleep

Denis Benato linux-iio lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 1 replySuperseded

Changelog from the cover letter

- V2: patch 2:
+ Simplify code
+ Remove unneeded code protections around SET_RUNTIME_PM_OPS()
+ pm_ptr() to let the compiler drop bmi323_core_pm_ops if !CONFIG_PM

- V3: patch 1:
+ Add pf->irq=0 that was accidentally left out

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: trigger: allow devices to suspend/resume theirs associated triggerdrivers/iio/industrialio-trigger.c include/linux/iio/iio.h+44 -00 replies
2/2iio: bmi323: suspend and resume triggering on relevant pm operationsdrivers/iio/imu/bmi323/bmi323.h drivers/iio/imu/bmi323/bmi323_core.c drivers/iio/imu/bmi323/bmi323_i2c.c +1 more+26 -00 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] iio: fix bug with triggers not resuming after sleep

When a device enters an idle state (for example ASUS RC71L with s2idle) and an iio driver has a trigger attached such as iio-trig-hrtimer, after resuming the device the trigger is not triggering data acquisition.

This patch series solves the problem reliably and is well tested after many cycles and many reboots.

Changelog:
- V2: patch 2:
+ Simplify code
+ Remove unneeded code protections around SET_RUNTIME_PM_OPS()
+ pm_ptr() to let the compiler drop bmi323_core_pm_ops if !CONFIG_PM

- V3: patch 1:
+ Add pf->irq=0 that was accidentally left out

Previous patches obsoleted:
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Denis Benato (2):
iio: trigger: allow devices to suspend/resume theirs associated
trigger
iio: bmi323: suspend and resume triggering on relevant pm operations

 drivers/iio/imu/bmi323/bmi323.h      |  1 +
 drivers/iio/imu/bmi323/bmi323_core.c | 23 +++++++++++++++++++++++
 drivers/iio/imu/bmi323/bmi323_i2c.c  |  1 +
 drivers/iio/imu/bmi323/bmi323_spi.c  |  1 +
 drivers/iio/industrialio-trigger.c   | 27 +++++++++++++++++++++++++++
 include/linux/iio/iio.h              | 17 +++++++++++++++++
 6 files changed, 70 insertions(+)
Signature · 1 line
2.46.0