WSL2-Linux-Kernel/drivers/iio/common
Gwendal Grignou c41664346a iio: cros: Register FIFO callback after sensor is registered
[ Upstream commit 0b4ae3f6d1 ]

Instead of registering callback to process sensor events right at
initialization time, wait for the sensor to be register in the iio
subsystem.

Events can come at probe time (in case the kernel rebooted abruptly
without switching the sensor off for  instance), and be sent to IIO core
before the sensor is fully registered.

Fixes: aa984f1ba4 ("iio: cros_ec: Register to cros_ec_sensorhub when EC supports FIFO")
Reported-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20220711144716.642617-1-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:55 +02:00
..
cros_ec_sensors iio: cros: Register FIFO callback after sensor is registered 2022-08-17 14:23:55 +02:00
hid-sensors iio/drivers/hid-sensor: use HZ macros 2021-09-08 11:50:26 -07:00
ms_sensors iio:common:ms_sensors:ms_sensors_i2c: add support for alternative PROM layout 2021-01-22 08:52:07 +00:00
scmi_sensors iio: scmi: fix spelling of SPDX tag 2021-06-13 17:00:18 +01:00
ssp_sensors iio: ssp_sensors: add more range checking in ssp_parse_dataframe() 2021-09-18 19:10:55 +01:00
st_sensors iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:36:20 +02:00
Kconfig iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00
Makefile iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00