72cad66c5b
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
fxas21002.c | ||
fxas21002.h | ||
fxas21002_trigger.c |