Skip to content

iio: fix suspend and resume triggering for bmi160 and bmi270

Denis Benato linux-iio lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 5 repliesIn review
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: bmi270: suspend and resume triggering on relevant pm operationsdrivers/iio/imu/bmi270/bmi270.h drivers/iio/imu/bmi270/bmi270_core.c drivers/iio/imu/bmi270/bmi270_i2c.c +1 more+26 -01 reply
2/2iio: bmi160: suspend and resume triggering on relevant pm operationsdrivers/iio/imu/bmi160/bmi160.h drivers/iio/imu/bmi160/bmi160_core.c drivers/iio/imu/bmi160/bmi160_i2c.c +1 more+25 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJustin Weiss
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] iio: fix suspend and resume triggering for bmi160 and bmi270

Two imu devices bmi160 and bmi270 are similar to bmi323, with the same bug and a common usecase: fix the aforementioned bug about triggering not resuming after sleep in the same way it was solved for the bmi323 device driver.

The bmi270 patch has been tested on a device where the device irq pin is connected to the CPU ensuring it doesn't cause harm to devices that do not use hrtimer or other external triggers.

Changelog from v1 [1]
- include linux/pm.h where needed
- used "Closed" to reference the solved issue for each driver
- merged two lines into one (on both drivers)

[1] https://lore.kernel.org/all/[email protected]

Denis Benato (2):
iio: bmi270: suspend and resume triggering on relevant pm operations
iio: bmi160: suspend and resume triggering on relevant pm operations

 drivers/iio/imu/bmi160/bmi160.h      |  2 ++
 drivers/iio/imu/bmi160/bmi160_core.c | 19 +++++++++++++++++++
 drivers/iio/imu/bmi160/bmi160_i2c.c  |  2 ++
 drivers/iio/imu/bmi160/bmi160_spi.c  |  2 ++
 drivers/iio/imu/bmi270/bmi270.h      |  2 ++
 drivers/iio/imu/bmi270/bmi270_core.c | 20 ++++++++++++++++++++
 drivers/iio/imu/bmi270/bmi270_i2c.c  |  2 ++
 drivers/iio/imu/bmi270/bmi270_spi.c  |  2 ++
 8 files changed, 51 insertions(+)
Signature · 1 line
2.49.0