]> xenbits.xensource.com Git - people/julieng/linux-arm.git/commit
lis3: improve handling of null rate
authorÉric Piel <eric.piel@tremplin-utc.net>
Thu, 3 Nov 2011 15:22:40 +0000 (16:22 +0100)
committerJulien Grall <julien.grall@citrix.com>
Fri, 18 Sep 2015 15:29:30 +0000 (16:29 +0100)
commitb26239d776ac63c3ebd8cc8ed1b22f88ce61ed3d
treed2775ecf9457a9abab3cfb346a12e0805574bc62
parent98b6420adeec122e151d460269046a86bed811a1
lis3: improve handling of null rate

When obtaining a rate of 0, we would disable the device supposely
because it seems to behave incorectly. It actually only comes from the
fact that the device is off and on lis3dc it's reflected in the rate.
So handle this nicely by just waiting a safe time, and then using the
device as normally.

Bugzilla: 785814
Upstream-status: ??

Signed-off-by: ??ric Piel <eric.piel@tremplin-utc.net>
drivers/misc/lis3lv02d/lis3lv02d.c