Hi, This series is completely reworked from the RFC, I hope I included all comments. I'm now using the iio event system to report events while running. :-) Wakeup is controlled via the PM framework, wakeup is only activated if the event system have been activated before suspending. /Sean Sean Nyekjaer (5): iio: imu: st_lsm6dsx: move interrupt thread to core iio: imu: st_lsm6dsx: add motion events iio: imu: st_lsm6dsx: add wakeup-source option iio: imu: st_lsm6dsx: always enter interrupt thread iio: imu: st_lsm6dsx: add motion report function and call from interrupt drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 3 + .../iio/imu/st_lsm6dsx/st_lsm6dsx_buffer.c | 80 +---- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 302 +++++++++++++++++- 3 files changed, 301 insertions(+), 84 deletions(-) -- 2.22.0