]> git.baikalelectronics.ru Git - kernel.git/commit
iio: accel: kxcjk-1013: support runtime pm
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 8 May 2014 21:58:00 +0000 (22:58 +0100)
committerJonathan Cameron <jic23@kernel.org>
Thu, 7 Aug 2014 10:22:42 +0000 (11:22 +0100)
commit47d0b3178c6240d42b6faa7a5004fe3df55f9355
tree734d5437f2a893dd3408ae1edb65dafbceb2c58a
parent148e3db684ed455005387b18772ee5a48783e229
iio: accel: kxcjk-1013: support runtime pm

In an effort to improve raw read performance and at the same time enter
low power state at every possible chance.
For raw reads, it will keep the system powered on for a default or user
specified time, via autosuspend_delay attribute of device power.
This will help read multiple samples without power on/off sequence.
For triggers it will keep the system on till, requested to be turned
off by trigger state by utilizing run time PM usage counters.

When runtime pm is not enabled, then it keeps the chip in operation
mode always.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/kxcjk-1013.c