linux/drivers/iio/common
Srinivas Pandruvada 88cc7b4eee hid-sensor: Fix suspend/resume delay
By default all the sensors are runtime suspended state (lowest power
state). During Linux suspend process, all the run time suspended
devices are resumed and then suspended. This caused all sensors to
power up and introduced delay in suspend time, when we introduced
runtime PM for HID sensors. The opposite process happens during resume
process.

To fix this, we do powerup process of the sensors only when the request
is issued from user (raw or tiggerred). In this way when runtime,
resume calls for powerup it will simply return as this will not match
user requested state.

Note this is a regression fix as the increase in suspend / resume
times can be substantial (report of 8 seconds on Len's laptop!)

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tested-by: Len Brown <len.brown@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-07-19 11:47:57 +01:00
..
hid-sensors hid-sensor: Fix suspend/resume delay 2015-07-19 11:47:57 +01:00
ssp_sensors iio: constify of_device_id array 2015-03-28 10:55:37 +00:00
st_sensors Third round of new IIO drivers, cleanups and functionality for the 4.2 cycle. 2015-06-10 20:48:34 -07:00
Kconfig iio: common: ssp_sensors: Add sensorhub driver 2015-01-29 18:49:05 +00:00
Makefile iio: common: ssp_sensors: Add sensorhub driver 2015-01-29 18:49:05 +00:00