WSL2-Linux-Kernel/drivers/iio/imu
Nuno Sá b600bd7eb3 iio: adis: do not disabe IRQs in 'adis_init()'
With commit ecb010d441 ("iio: imu: adis: Refactor adis_initial_startup")
we are doing a HW or SW reset to the device which means that we'll get
the default state of the data ready pin (which is enabled). Hence there's
no point in disabling the IRQ in the init function. Moreover, this
function is intended to initialize internal data structures and not
really do anything on the device.

As a result of this, some devices were left with the data ready pin enabled
after probe which was not the desired behavior. Thus, we move the call to
'adis_enable_irq()' to the initial startup function where it makes more
sense for it to be.

Note that for devices that cannot mask/unmask the pin, it makes no sense
to call the function at this point since the IRQ should not have been
yet requested. This will be improved in a follow up change.

Fixes: ecb010d441 ("iio: imu: adis: Refactor adis_initial_startup")
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20210903141423.517028-2-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-10-19 08:27:34 +01:00
..
bmi160 iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
inv_icm42600 iio: Drop Duplicated "mount-matrix" parameter 2021-06-03 18:24:13 +01:00
inv_mpu6050 iio: imu: inv_mpu6050: Mark acpi match table as maybe unused 2021-10-17 11:05:53 +01:00
st_lsm6dsx iio: imu: st_lsm6dsx: move max_fifo_size in st_lsm6dsx_fifo_ops 2021-10-19 08:27:34 +01:00
st_lsm9ds0 iio: st_sensors: remove reference to parent device object on st_sensor_data 2021-09-14 12:00:32 +01:00
Kconfig iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
Makefile iio: st_sensors: Add lsm9ds0 IMU support 2021-05-17 13:54:22 +01:00
adis.c iio: adis: do not disabe IRQs in 'adis_init()' 2021-10-19 08:27:34 +01:00
adis16400.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16460.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16475.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis16480.c iio: imu: remove unused private data assigned with spi_set_drvdata() 2021-06-13 17:00:17 +01:00
adis_buffer.c iio: adis: add burst_max_speed_hz variable 2021-05-17 13:49:09 +01:00
adis_trigger.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
fxos8700.h iio: imu: Add support for the FXOS8700 IMU 2019-10-22 10:24:50 +01:00
fxos8700_core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
fxos8700_i2c.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
fxos8700_spi.c iio: imu: fxos8700: Drop unneeded explicit castings 2021-03-25 19:13:50 +00:00
kmx61.c iio: imu: kmx61: Balance runtime pm + use pm_runtime_resume_and_get() 2021-05-17 13:54:26 +01:00