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 @@ -720,6 +720,8 @@ static int __maybe_unused inv_icm42600_suspend(struct device *dev)
720
720
static int __maybe_unused inv_icm42600_resume (struct device * dev )
721
721
{
722
722
struct inv_icm42600_state * st = dev_get_drvdata (dev );
723
+ struct inv_icm42600_timestamp * gyro_ts = iio_priv (st -> indio_gyro );
724
+ struct inv_icm42600_timestamp * accel_ts = iio_priv (st -> indio_accel );
723
725
int ret ;
724
726
725
727
mutex_lock (& st -> lock );
@@ -740,9 +742,12 @@ static int __maybe_unused inv_icm42600_resume(struct device *dev)
740
742
goto out_unlock ;
741
743
742
744
/* restore FIFO data streaming */
743
- if (st -> fifo .on )
745
+ if (st -> fifo .on ) {
746
+ inv_icm42600_timestamp_reset (gyro_ts );
747
+ inv_icm42600_timestamp_reset (accel_ts );
744
748
ret = regmap_write (st -> map , INV_ICM42600_REG_FIFO_CONFIG ,
745
749
INV_ICM42600_FIFO_CONFIG_STREAM );
750
+ }
746
751
747
752
out_unlock :
748
753
mutex_unlock (& st -> lock );
You can’t perform that action at this time.
0 commit comments