Commit 29ca4a5a authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Todd Kjos
Browse files

UPSTREAM: 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: default avatarGwendal Grignou <gwendal@chromium.org>
Link: https://patch.msgid.link/20250423220506.2061021-1-gwendal@chromium.org


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
(cherry picked from commit e50cf7e2)

Bug: 381480028
Bug: 356723377
Test: Check CTS on AL, tast hardware.SensorIioserviceHard

Change-Id: I5a3a3db7777958a26e1e48de48c6bded42b6ba27
Signed-off-by: default avatarGwendal Grignou <gwendal@google.com>
parent 4934f482
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment