Gwendal Grignou
84ed699ac9
driver: bmi160: Prevent crash when FIFO is not valid
...
When all BMI160 sensors are suspended, FIFO is invalid.
Put the test to check if all sensors are disable within the processing
loop: otherwise, the FIFO can become invalid while we are processing it.
Add printf to be sure we are not processing invalid FIFO.
Add a macro around ODR to really check the ODR rate, excluding the
roundup flag.
BRANCH=smaug
BUG=chrome-os-partner:44381
TEST=Using a special patch (see 44381#14) add delay
to simulate a loaded EC (like at resume).
Using a script flip-flop sensors frequency (to simulate suspend/resume).
Check that:
- we are not crashing anymore (we were before this patch)
- the driver is not hitting invalid FIFO content.
Change-Id: I7c9e86f5dcfc231ab89472a6ea03af22e2c2ac32
Signed-off-by: Gwendal Grignou <gwendal@chromium.org >
Reviewed-on: https://chromium-review.googlesource.com/297178
Reviewed-by: Alec Berg <alecaberg@chromium.org >
2015-09-07 15:16:47 -07:00
..
2015-07-28 21:31:38 +00:00
2013-12-20 05:07:58 +00:00
2015-07-28 21:31:38 +00: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-08-10 20:42:18 +00:00
2014-05-21 20:32:17 +00:00
2014-05-21 20:32:17 +00:00
2015-03-23 19:23:35 +00:00
2015-08-22 01:37:38 +00:00
2015-06-10 19:48:08 +00:00
2015-07-14 22:39:36 +00:00
2015-08-13 21:41:18 +00: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-07-25 08:47:31 +00:00
2015-01-17 23:19:58 +00: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
2013-10-25 20:12:49 +00:00
2015-05-28 03:18:06 +00:00
2015-07-28 21:31:38 +00:00
2015-07-17 03:17:50 +00:00
2015-07-17 03:17:50 +00:00
2015-07-01 03:49:00 +00:00
2015-06-26 18:57:32 +00:00
2015-08-29 01:34:15 -07:00
2015-07-25 14:49:31 +00:00
2015-07-13 18:43:56 +00:00
2015-01-07 08:45:38 +00:00
2015-07-29 06:38:45 +00:00
2015-07-28 21:31:38 +00:00
2014-10-24 01:37:58 +00:00
2013-10-25 01:32:15 +00:00
2014-03-06 21:33:09 +00:00
2015-08-22 01:37:51 +00: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-08-28 18:09:06 -07:00
2013-03-22 11:24:29 -07:00
2015-08-21 00:49:26 +00: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-08-21 00:49:26 +00:00
2015-07-13 18:43:56 +00:00
2015-08-24 19:08:20 +00:00
2015-05-02 03:39:37 +00:00
2015-05-28 23:02:18 +00:00
2015-08-22 01:37:55 +00:00
2015-09-07 15:16:47 -07:00
2013-08-02 18:22:57 -07:00
2015-04-14 01:15:43 +00:00
2015-05-27 02:39:41 +00:00
2015-06-10 18:24:05 +00:00
2015-06-10 18:24:05 +00:00
2014-05-21 20:32:17 +00:00
2015-07-15 02:06:48 +00:00
2015-06-04 01:15:55 +00:00
2015-02-10 23:07:14 +00:00
2015-04-10 23:29:27 +00: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-03 15:11:45 -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-07-16 18:47:22 +00:00
2015-07-30 19:57:55 +00:00
2014-05-21 20:32:17 +00:00
2015-09-01 16:10:43 -07: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-08-14 21:04:32 +00:00
2015-08-22 01:37:25 +00:00
2015-08-08 04:26:40 +00:00
2015-09-03 04:24:34 -07:00
2015-08-22 01:37:38 +00:00
2015-09-01 16:10:43 -07:00
2015-08-21 08:10:03 +00: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-07-01 03:49:00 +00:00
2015-05-19 02:46:27 +00:00
2014-02-22 00:50:37 +00:00