Gwendal Grignou
70915b5012
motion: Set interrupt interval properly for sensor in force mode
...
cl/301134 has a bug. If the AP wants a forced sensor (i.e. light) at
100Hz but a sampling frequency at 1s, we would still wake it up every
.1s instead of 1s.
Take in account force mode only when calculating the sampling frequency
not the interrupt interval.
BRANCH=smaug
BUG=b:25425420
TEST=Check the device goes to suspend even with 40Hz light sampling
rate:
echo 0 > /sys/bus/iio/devices/iio:device0/frequency
echo 40000 > /sys/bus/iio/devices/iio:device3/frequency
echo mem >/sys/power/state
Before it would resume just after suspend/while suspending.
Change-Id: Ie4fe36268cb1b04bc8f01ec885af84fad9e8b282
Signed-off-by: Gwendal Grignou <gwendal@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/314315
Reviewed-by: Alec Berg <alecaberg@chromium.org >
2015-12-01 01:11:11 -08:00
..
2015-11-09 12:49:36 -08:00
2013-12-20 05:07:58 +00:00
2015-10-02 12:55:51 -07:00
2014-05-21 20:32:17 +00:00
2013-09-27 23:07:21 +00:00
2014-06-15 01:45:21 +00:00
2015-06-04 19:33:00 +00:00
2015-11-25 11:17:13 -08:00
2015-11-09 12:49:36 -08:00
2014-05-21 20:32:17 +00:00
2015-09-08 13:49:09 -07:00
2015-11-09 12:49:30 -08:00
2015-06-10 19:48:08 +00:00
2015-07-14 22:39:36 +00:00
2015-11-19 21:44:45 -08:00
2014-05-21 20:32:17 +00:00
2014-11-18 05:19:47 +00:00
2015-05-19 02:46:27 +00:00
2015-11-17 14:40:26 -08:00
2015-11-26 01:39:36 -08:00
2014-08-29 02:57:00 +00:00
2014-08-08 03:11:38 +00:00
2015-07-17 03:17:50 +00:00
2015-11-17 14:40:26 -08:00
2015-05-28 03:18:06 +00:00
2015-11-19 20:01:59 -08:00
2015-09-21 20:50:56 -07:00
2015-07-17 03:17:50 +00:00
2015-09-25 18:05:27 -07:00
2015-11-09 12:49:37 -08:00
2015-09-29 11:28:40 -07:00
2015-09-26 01:07:39 -07:00
2015-07-13 18:43:56 +00:00
2015-11-09 12:49:43 -08:00
2015-11-25 12:59:17 -08:00
2015-11-03 09:08:21 -08:00
2014-10-24 01:37:58 +00:00
2014-03-06 21:33:09 +00:00
2015-10-27 11:52:34 -07:00
2015-01-30 05:11:06 +00:00
2015-07-17 03:18:03 +00:00
2015-08-28 18:09:06 -07:00
2015-08-31 22:59:52 -07:00
2015-11-11 11:01:04 -08:00
2013-03-22 11:24:29 -07:00
2015-09-25 09:13:34 -07:00
2014-01-14 09:19:45 +00:00
2015-01-14 21:49:36 +00:00
2015-08-10 20:42:18 +00:00
2015-07-23 22:38:06 +00:00
2015-11-13 01:00:39 -08:00
2015-10-13 05:28:54 -07:00
2015-10-13 21:58:01 -07:00
2015-10-13 05:28:54 -07:00
2015-10-13 05:28:54 -07:00
2015-09-15 17:56:17 -07:00
2015-09-16 14:49:59 -07:00
2015-10-06 22:57:15 -07:00
2015-11-25 18:15:38 -08:00
2015-12-01 01:11:11 -08:00
2013-08-02 18:22:57 -07:00
2015-10-19 13:45:49 -07:00
2015-11-08 10:07:38 -08:00
2015-11-11 12:58:37 -08:00
2015-06-04 01:15:55 +00:00
2015-02-10 23:07:14 +00:00
2015-10-19 13:45:49 -07:00
2012-07-26 16:25:34 -07:00
2013-11-05 02:32:40 +00:00
2013-10-23 20:07:25 +00:00
2015-06-11 00:08:49 +00:00
2015-07-15 21:57:36 +00:00
2014-11-15 06:00:02 +00:00
2015-09-25 19:36:37 -07:00
2014-05-17 20:14:17 +00:00
2013-12-19 00:12:28 +00:00
2015-02-24 00:27:42 +00:00
2015-02-04 23:32:42 +00:00
2015-11-19 02:18:10 -08:00
2015-09-16 14:49:33 -07:00
2015-09-29 14:42:05 -07:00
2014-05-21 20:32:17 +00:00
2015-11-08 07:59:39 -08:00
2015-01-14 03:15:41 +00:00
2014-01-08 03:49:36 +00:00
2015-01-14 03:15:41 +00:00
2014-05-21 20:32:17 +00:00
2015-09-21 01:13:54 -07:00
2015-11-18 00:14:04 -08:00
2015-10-19 13:45:49 -07:00
2015-11-11 11:00:53 -08:00
2015-11-11 11:00:56 -08:00
2015-11-17 22:06:49 -08:00
2015-11-11 11:00:56 -08:00
2014-05-21 20:32:17 +00:00
2014-08-23 02:42:21 +00:00
2015-01-08 00:38:13 +00:00
2015-09-21 11:23:31 -07:00
2015-10-13 05:28:54 -07:00
2015-09-24 12:46:28 -07:00
2014-02-22 00:50:37 +00:00