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)
829829static int inv_icm42600_resume (struct device * dev )
830830{
831831 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 );
832834 int ret ;
833835
834836 mutex_lock (& st -> lock );
@@ -849,9 +851,12 @@ static int inv_icm42600_resume(struct device *dev)
849851 goto out_unlock ;
850852
851853 /* 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 );
853857 ret = regmap_write (st -> map , INV_ICM42600_REG_FIFO_CONFIG ,
854858 INV_ICM42600_FIFO_CONFIG_STREAM );
859+ }
855860
856861out_unlock :
857862 mutex_unlock (& st -> lock );
You can’t perform that action at this time.
0 commit comments