FIXUP: CHROMIUM: iio: cros_ec: default to ec fifo size
If the EC is too old to report a sensor's max_events, default to the
size previously used by the sensor HAL instead of the minimum fifo size.
This avoids CTS failures caused by using the minimum fifo size when
we don't know a sensor's fifo size instead of overestimating fifo size.
Declaring a smaller fifo size than actually exists causes the CTS test to
get more data than it expects, causing failure (fix for cl/476174).
TEST=builds and works on reef with older EC that don't make sensor
max_events available to kernel; verified value of max_events on older
EC is 1365, verified cts sensor batching tests pass under CTSvs using cmd
"cts-tradefed run commandAndExit cts -s <IP> -m CtsHardwareTestCases -t
Signed-off-by: Nick Vaccaro <email@example.com>
Commit-Ready: Gwendal Grignou <firstname.lastname@example.org>
Reviewed-by: Gwendal Grignou <email@example.com>
1 file changed