zephyr/drivers/sensor
Diego Sueiro 72cad66c5b drivers/sensor/fxas21002: Fix race condition during initialization
A race condition was identified during the initialization of the
driver when the trigger function is enabled. This exposed two issues:

1 - The fxas21002_handle_int is trying to acquire the semaphore before
    it gets initialized. To solve this we need to initialize the
    semaphore before calling the fxas21002_trigger_init function.

2 - During the fxas21002_trigger initialization the i2c bus is used
    (from fxas21002_handle_int function) at the same time as the
    fxas21002_set_power is being called. To fix this we need to
    initialize the semaphore with 0 and just release it after calling
    the fxas21002_set_power function in the fxas21002_int

Signed-off-by: Diego Sueiro <diego.sueiro@gmail.com>
2018-08-13 09:05:54 -05:00
..
adt7420 drivers: sensors: adt7420: Add driver for ADT7420 Temperature Sensor 2018-07-12 13:03:24 -05:00
adxl362 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
ak8975 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
amg88xx drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
apds9960 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
bma280 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
bmc150_magn drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
bme280 drivers: Cmake: Add __ZEPHYR_SUPERVISOR__ macro for driver files. 2018-05-15 17:48:18 +03:00
bmg160 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
bmi160 Kconfig: Use the first default with a satisfied condition 2018-08-10 12:38:28 -07:00
bmm150 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
ccs811 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
dht drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
fxas21002 drivers/sensor/fxas21002: Fix race condition during initialization 2018-08-13 09:05:54 -05:00
fxos8700 drivers/sensor/fxos8700: Fix race condition during initialization 2018-08-13 09:05:07 -05:00
hdc1008 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
hmc5883l drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
hp206c drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
hts221 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
isl29035 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lis2dh drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lis3dh drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lis3mdl drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lps22hb drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lps25hb drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lsm6ds0 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lsm6dsl drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lsm9ds0_gyro drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
lsm9ds0_mfd drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
max30101 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
max44009 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
mcp9808 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
mma8451q drivers: sensor: Add support for MMA8451Q (3-axis accelerometer) 2018-07-31 09:07:54 -05:00
mpu6050 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
nrf5 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
pms7003 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
sht3xd drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
sx9500 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
th02 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
tmp007 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
tmp112 drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
vl53l0x drivers: sensor: Kconfig: Remove redundant 'default n' properties 2018-06-27 17:20:10 -05:00
CMakeLists.txt drivers: sensor: Add support for MMA8451Q (3-axis accelerometer) 2018-07-31 09:07:54 -05:00
Kconfig drivers: sensor: Add support for MMA8451Q (3-axis accelerometer) 2018-07-31 09:07:54 -05:00
sensor_handlers.c syscalls: remove policy from handler checks 2018-05-17 23:34:03 +03:00