diff options
| author | mattis fjallstrom <mattis@acm.org> | 2015-11-17 17:27:16 -0800 |
|---|---|---|
| committer | mattis fjallstrom <mattis@acm.org> | 2015-11-23 21:16:50 -0800 |
| commit | 3c68bb7d91a4cada502bc4e0825cde694f5f6364 (patch) | |
| tree | b45920302c3c94c8b93c347a49fabaeca512549e /drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c | |
| parent | 1263594ac4592804a8f49e73b42ed9c2f41644db (diff) | |
| download | olio-linux-3.10-3c68bb7d91a4cada502bc4e0825cde694f5f6364.tar.xz olio-linux-3.10-3c68bb7d91a4cada502bc4e0825cde694f5f6364.zip | |
Adding special handling for 6d-events, so that we can recognize it higher up the software stack.
Change-Id: I00a3ebe3bbcf4cfeb8ff89e75c990d90d8e1acc9
Diffstat (limited to 'drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c')
| -rw-r--r-- | drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c index 7a3b667d502..a7925638dba 100644 --- a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c +++ b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3_trigger.c @@ -205,6 +205,9 @@ static void st_lsm6ds3_irq_management(struct work_struct *data_work) #ifdef WAKE_STATS_DEBUG_INFO wakeup_irq_stayawake_count++; #endif + if (d6d_event) { + st_lsm6ds3_push_d6d_to_fifo(cdata); + } } else if(d6d_event && !ignore_event){//negative roll wake_lock_timeout(&cdata->tap_wlock,msecs_to_jiffies(200)); @@ -212,7 +215,7 @@ static void st_lsm6ds3_irq_management(struct work_struct *data_work) wakeup_irq_keepawake_count++; #endif } -//significant motion event processing + //significant motion event processing if(tap_event){ dev_info(cdata->dev, "Sending sig mot event(tap); ready:%i",cdata->sign_motion_event_ready); st_lsm6ds3_push_tap_to_fifo(cdata); |