OSDN Git Service

libsensors: retry more and deal with sensor hub quirk
authorDaniel Leung <daniel.leung@intel.com>
Thu, 27 Dec 2012 20:55:57 +0000 (12:55 -0800)
committerMattias Pettersson <mattias.pettersson@intel.com>
Wed, 4 Dec 2013 14:13:12 +0000 (15:13 +0100)
commitbc76fcaabb88a21a7db2b29a67cdd9b394423fd8
tree158fed65742ddc37e98507babe106c6b54a006e1
parent334c070146ab32580957821c5b66d5a5e17ae78f
libsensors: retry more and deal with sensor hub quirk

() Sometimes the ueventd has a hard time keeping up with all
   the uevents. It causes the permissions of the IIO sysfs nodes
   to remain unchanged. This causes the sensor HAL initialization
   to fail. Need to retry a few more times.

() There is a quirk with some sensor hubs, where you have to
   enable/disable/enable for it to start sending any events.
   This adds the code to "jump-start" the hub.

Issue: AXIA-1451
Change-Id: Iecfbf8589637eb16a8b80364b47c2527a69d7cd3
Depends-Change-Id: Ibfff2a60c5223b2018c106237365967471e00e89
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
common/libsensors/HidSensor_ALS.cpp
common/libsensors/HidSensor_Accel3D.cpp
common/libsensors/HidSensor_Compass3D.cpp
common/libsensors/HidSensor_Gyro3D.cpp
common/libsensors/SensorIIODev.cpp