RFC io: imu: st_lsm6dsx: wake on acc event
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest3 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | iio: imu: st_lsm6dsx: add wake on accelerometer thresholddrivers/ drivers/ | +72 | 1 reply | |
| 2/3 | iio: imu: st_lsm6dsx: add wake on accelerometer enable hook in sysfsdrivers/ | +31 | 3 replies | |
| 3/3 | iio: imu: st_lsm6dsx: add wake on accelerometer threshold hook in sysfsdrivers/ | +34 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/3] io: imu: st_lsm6dsx: wake on acc event
Hi,
The first patch enables the wake event creation in the suspend function, it hardcodes the accelerometer to low power mode and the gyro is powered down.
The second and third patch is where I have some questions. Is it okay to create an sysfs entry that can enable and disable the wake events from the accelerometer?
The third patch is enabling us to set the threshold value. Obviously this will need to be changed to represent a real value instead of the raw register value.
Maybe I need to add a threshold avaliable sysfs entry?
Do I set it to a raw value calculated from the scale value or is some have a better idea?
Finally is this the right approach to enable wake on accelerometer events?
Please provide some idea's to how we could do it in the best and most generic way.
/Sean
Sean Nyekjaer (3):
iio: imu: st_lsm6dsx: add wake on accelerometer threshold
iio: imu: st_lsm6dsx: add wake on accelerometer enable hook in sysfs
iio: imu: st_lsm6dsx: add wake on accelerometer threshold hook in
sysfs
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 2 + drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c | 135 +++++++++++++++++++ 2 files changed, 137 insertions(+)
Signature · 1 line
2.22.0