linux/drivers/iio/pressure
Gwendal Grignou 0b4ae3f6d1 iio: cros: Register FIFO callback after sensor is registered
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>
2022-07-18 18:29:13 +01:00
..
abp060mg.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bmp280-core.c iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace 2022-06-21 21:30:31 +01:00
bmp280-i2c.c iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace 2022-06-21 21:30:31 +01:00
bmp280-regmap.c iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace 2022-06-21 21:30:31 +01:00
bmp280-spi.c iio: pressure: bmp280: Move symbol exports to IIO_BMP280 namespace 2022-06-21 21:30:31 +01:00
bmp280.h iio: pressure: bmp280: use devm action and remove labels from probe 2019-10-22 11:10:23 +01:00
cros_ec_baro.c iio: cros: Register FIFO callback after sensor is registered 2022-07-18 18:29:13 +01:00
dlhl60d.c iio: pressure: dlhl60d: Drop unnecessary alignment forcing. 2022-06-14 11:53:19 +01:00
dps310.c iio: pressure: dps310: Add ACPI HID table 2022-01-30 12:55:11 +00:00
hid-sensor-press.c iio: hid-sensor-press: Add timestamp channel 2021-08-09 20:17:36 +01:00
hp03.c iio: pressure: hp03: update device probe to register with devm functions 2021-08-15 16:58:37 +01:00
hp206c.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
icp10100.c iio: pressure: icp10100: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
Kconfig iio: st_sensors: don't always auto-enable I2C and SPI interface drivers 2022-01-23 18:03:35 +00:00
Makefile iio: pressure: icp10100: add driver for InvenSense ICP-101xx 2020-03-08 17:28:52 +00:00
mpl115_i2c.c iio:pressure:mpl115: Move exports into IIO_MPL115 namespace 2022-02-18 11:42:27 +00:00
mpl115_spi.c iio:pressure:mpl115: Move exports into IIO_MPL115 namespace 2022-02-18 11:42:27 +00:00
mpl115.c iio:pressure:mpl115: Move exports into IIO_MPL115 namespace 2022-02-18 11:42:27 +00:00
mpl115.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl3115.c iio:pressure:mpl3115: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:45:30 +00:00
ms5611_core.c iio:pressure:ms5611: Move exports into IIO_MS5611 namespace 2022-02-18 11:42:26 +00:00
ms5611_i2c.c iio:pressure:ms5611: Move exports into IIO_MS5611 namespace 2022-02-18 11:42:26 +00:00
ms5611_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
ms5611.h iio: ms5611: Simplify IO callback parameters 2021-11-17 17:51:33 +00:00
ms5637.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
st_pressure_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_pressure_core.c iio: st_sensors: Stop abusing mlock to ensure internal coherency 2022-04-10 16:21:45 +01:00
st_pressure_i2c.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_pressure_spi.c iio:st-sensors: Move exports into IIO_ST_SENSORS namespace 2022-02-18 11:36:54 +00:00
st_pressure.h iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
t5403.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
zpa2326_i2c.c iio:pressure:zpa2326: Move exports into IIO_ZPA2326 namespace 2022-02-18 11:42:26 +00:00
zpa2326_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
zpa2326.c iio:pressure:zpa2326: Move exports into IIO_ZPA2326 namespace 2022-02-18 11:42:26 +00:00
zpa2326.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00