linux/drivers/iio
Jean-Baptiste Maneyrol 9bf2db6465 iio: imu: inv_icm42600: fix timestamp clock period by using lower value
commit 8b0b864c11 upstream.

Clock period value is used for computing periods of sampling. There is
no need for it to be higher than the maximum odr, otherwise we are
losing precision in the computation for nothing.

Switch clock period value to maximum odr period (8kHz).

Fixes: 0ecc363cce ("iio: make invensense timestamp module generic")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2026-07-24 15:52:02 +02:00
..
accel iio: accel: mma8452: handle I2C read error(s) in mma8452_read() 2026-07-24 15:51:37 +02:00
adc iio: adc: ti-ads124s08: Return reset GPIO lookup errors 2026-07-24 15:51:18 +02:00
addac iio: addac: stx104: Fix race condition when converting analog-to-digital 2023-08-26 14:23:27 +02:00
afe iio: afe: rescale: Accept only offset channels 2023-11-08 17:26:42 +01:00
amplifiers iio: amplifiers: hmc425a: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
buffer iio: buffer: hw-consumer: fix use-after-free in error path 2026-06-19 13:33:27 +02:00
cdc iio:cdc:ad7150: Fix use of uninitialized ret 2021-04-07 08:36:39 +01:00
chemical iio: chemical: scd30: Cleanup initializations and fix sign-extension bug 2026-07-24 15:51:18 +02:00
common iio: invensense: fix odr switching to same value 2026-07-24 15:52:02 +02:00
dac iio: dac: ad5686: fix ref bit initialization for single-channel parts 2026-06-19 13:33:47 +02:00
dummy iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer 2025-01-23 17:15:54 +01:00
frequency iio: frequency: adf4350: Fix prescaler usage. 2025-10-19 16:21:45 +02:00
gyro iio: gyro: bmg160: wait full startup time after mode change at probe 2026-07-24 15:51:18 +02:00
health iio: health: afe4404: Fix oob read in afe4404_[read|write]_raw 2022-12-08 11:28:38 +01:00
humidity iio:humidity:hts221: rearrange iio trigger get and register 2022-06-29 09:03:27 +02:00
imu iio: imu: inv_icm42600: fix timestamp clock period by using lower value 2026-07-24 15:52:02 +02:00
light iio: light: si1133: prevent race condition on timeout 2026-07-24 15:51:37 +02:00
magnetometer iio: magnetometer: ak8975: fix potential kernel stack memory leak 2026-07-24 15:51:37 +02:00
multiplexer iio: multiplexer: iio-mux: Simplify with dev_err_probe() 2020-09-03 19:40:51 +01:00
orientation iio: hid-sensor-rotation: Fix stale or zero output when reading raw values 2026-07-24 15:51:56 +02:00
position iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
potentiometer iio: potentiometer: mcp4131: fix double application of wiper shift 2026-04-18 10:33:16 +02:00
potentiostat iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_timestamp() 2021-05-17 13:54:30 +01:00
pressure iio: pressure: bmp280: Use IS_ERR() in bmp280_common_probe() 2025-08-28 16:24:35 +02:00
proximity iio: proximity: isl29501: fix buffered read on big-endian systems 2025-08-28 16:24:35 +02:00
resolver iio:resolver:ad2s1200: Drop of_match_ptr protection 2020-09-21 18:41:31 +01:00
temperature iio: temperature: ltc2983: Fix n_wires default bypassing rotation check 2026-07-24 15:51:24 +02:00
test iio/test-format: build kunit tests without structleak plugin 2021-10-06 17:53:36 -06:00
trigger iio: trigger: sysfs: fix possible memory leak in iio_sysfs_trig_init() 2022-11-26 09:24:46 +01:00
iio_core.h iio: buffer: fix use-after-free for attached_buffers array 2021-03-25 19:13:51 +00:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
industrialio-buffer.c iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTL 2022-02-16 12:56:37 +01:00
industrialio-configfs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-core.c driver: iio: add missing checks on iio_info's callback access 2026-04-18 10:33:17 +02:00
industrialio-event.c iio: event: Fix event FIFO reset race 2026-07-24 15:51:18 +02:00
industrialio-sw-device.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-12-02 17:41:08 +01:00
industrialio-trigger.c iio: trigger: Fix a scheduling whilst atomic issue seen on tsc2046 2022-01-27 11:02:57 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c driver: iio: add missing checks on iio_info's callback access 2026-04-18 10:33:17 +02:00
Kconfig iio: add addac subdirectory 2023-08-26 14:23:26 +02:00
Makefile iio: add addac subdirectory 2023-08-26 14:23:26 +02:00
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00