File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
drivers/iio/imu/inv_icm42600 Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -829,6 +829,8 @@ static int inv_icm42600_suspend(struct device *dev)
829
829
static int inv_icm42600_resume (struct device * dev )
830
830
{
831
831
struct inv_icm42600_state * st = dev_get_drvdata (dev );
832
+ struct inv_icm42600_sensor_state * gyro_st = iio_priv (st -> indio_gyro );
833
+ struct inv_icm42600_sensor_state * accel_st = iio_priv (st -> indio_accel );
832
834
int ret ;
833
835
834
836
mutex_lock (& st -> lock );
@@ -849,9 +851,12 @@ static int inv_icm42600_resume(struct device *dev)
849
851
goto out_unlock ;
850
852
851
853
/* restore FIFO data streaming */
852
- if (st -> fifo .on )
854
+ if (st -> fifo .on ) {
855
+ inv_sensors_timestamp_reset (& gyro_st -> ts );
856
+ inv_sensors_timestamp_reset (& accel_st -> ts );
853
857
ret = regmap_write (st -> map , INV_ICM42600_REG_FIFO_CONFIG ,
854
858
INV_ICM42600_FIFO_CONFIG_STREAM );
859
+ }
855
860
856
861
out_unlock :
857
862
mutex_unlock (& st -> lock );
You can’t perform that action at this time.
0 commit comments