linux_dsm_epyc7002/drivers/iio/common/hid-sensors
Song Hongyan 3bec247474 iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3
In function _hid_sensor_power_state(), when hid_sensor_read_poll_value()
is called, sensor's all properties will be updated by the value from
sensor hardware/firmware.
In some implementation, sensor hardware/firmware will do a power cycle
during S3. In this case, after resume, once hid_sensor_read_poll_value()
is called, sensor's all properties which are kept by driver during S3
will be changed to default value.
But instead, if a set feature function is called first, sensor
hardware/firmware will be recovered to the last status. So change the
sensor_hub_set_feature() calling order to behind of set feature function
to avoid sensor properties lose.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-03-05 10:26:47 +00:00
..
hid-sensor-attributes.c iio: accel: hid-sensor-accel-3d: Add timestamp 2016-12-03 10:06:13 +00:00
hid-sensor-trigger.c iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3 2017-03-05 10:26:47 +00:00
hid-sensor-trigger.h iio: hid_sensor_hub: Common PM functions 2015-01-25 22:55:39 +00:00
Kconfig iio: hid-sensors: Fix power and report state 2013-12-02 21:05:32 +00:00
Makefile iio: hid-sensors: respect CONFIG_IIO_TRIGGER 2012-12-27 10:59:50 +00:00