2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/iio/common/cros_ec_sensors
Gwendal Grignou e50cf7e2e6 iio: cros_ec_sensors: Flush when changing the FIFO timeout
|hwfifo_timeout| is used by the EC firmware only when new samples are
available.
When the timeout changes, espcially when the new timeout is shorter than
the current one, send the samples waiting in the FIFO to the host.
Inline the call to transmit |hwfifo_timeout| value to the firmware.

Now flush when a sensor is suspended (ODR set to 0) as well.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://patch.msgid.link/20250423220506.2061021-1-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-05-21 14:20:28 +01:00
..
cros_ec_lid_angle.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
cros_ec_sensors_core.c iio: cros_ec_sensors: Flush when changing the FIFO timeout 2025-05-21 14:20:28 +01:00
cros_ec_sensors_trace.c iio: cros_ec: Trace EC sensors command 2025-02-08 15:10:15 +00:00
cros_ec_sensors_trace.h iio: cros_ec: Trace EC sensors command 2025-02-08 15:10:15 +00:00
cros_ec_sensors.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
Kconfig iio / platform: cros_ec: Add cros-ec-sensorhub driver 2019-11-21 11:23:14 +01:00
Makefile iio: cros_ec: Trace EC sensors command 2025-02-08 15:10:15 +00:00