OSDN Git Service

bigcore: Give more time for iio device detection
authorHuzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com>
Wed, 6 Mar 2013 14:44:22 +0000 (06:44 -0800)
committerMattias Pettersson <mattias.pettersson@intel.com>
Wed, 4 Dec 2013 14:13:12 +0000 (15:13 +0100)
commitafd90c127f93cb575903c839920192fa8e0e095e
treebe342ce7af004519c113f382ecd2a837930d1f06
parent8ab207ee822ac7b9ba30995f28c75b798b8fa71d
bigcore: Give more time for iio device detection

Currently android framework checks if /sys/bus/iio/devices node
is created and sets sensor property based on it. The check is
performed in a for loop of ~1 sec.
Looks like for i2c based sensors it is taking more time for the
node to be created and hence setting of property fails.

Increase the loop time to ~5 sec max which gives enough time for
the node to be detected.

Issue: AXIA-2039
Change-Id: I1b33eae948482e9e6835918d61357cd6ba3d7b2b
Signed-off-by: Huzefa Kankroliwala <huzefa.nomanx.kankroliwala@intel.com>
bigcore/libsensors/BoardConfig.cpp