linux_dsm_epyc7002/drivers/iio/common/st_sensors
Crestez Dan Leonard ff05916f94 iio: st_sensors: Init trigger before irq request
This fixes a possible race where an interrupt arrives before complete
initialization and crashes because iio_trigger_get_drvdata returns NULL.

Cc: Giuseppe Barba <giuseppe.barba@st.com>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2016-05-29 20:25:27 +01:00
..
Kconfig iio:common: Add STMicroelectronics common library 2013-01-31 17:56:43 +00:00
Makefile iio:common: Add STMicroelectronics common library 2013-01-31 17:56:43 +00:00
st_sensors_buffer.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_sensors_core.c iio: st_sensors: switch to a threaded interrupt 2016-05-29 20:21:41 +01:00
st_sensors_core.h iio: st_sensors: support active-low interrupts 2016-01-10 12:35:32 +00:00
st_sensors_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_sensors_spi.c iio: common: remove unnecessary sizeof(u8) 2014-12-12 12:28:25 +00:00
st_sensors_trigger.c iio: st_sensors: Init trigger before irq request 2016-05-29 20:25:27 +01:00