FROMGIT: 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> (cherry picked from commit b5b9adfbd6f2ae05550c3012c4c7daebf7d4c79c git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio.git togreg) Bug: 381480028,356723377 Upstream-task: 294468604 Test: Check CTS on AL, tast hardware.SensorIioserviceHard Change-Id: I5a3a3db7777958a26e1e48de48c6bded42b6ba27 Signed-off-by:
Gwendal Grignou <gwendal@chromium.org>
Loading
Please sign in to comment