]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)
authorSong Hongyan <hongyan.song@intel.com>
Tue, 25 Oct 2016 01:06:03 +0000 (01:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:47 +0000 (10:51 +0100)
commit4dfb6d1dd11d2e2e7f364a9425a893ba1b73024e
treefda69e42dfec23942994a6a0734209533b8c82b5
parent341c5534edad511a97221eb21a5fe9bb020ec868
iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)

commit 8af644a7d6846f48d6b72be5d4a3c6eb16bd33c8 upstream.

This fix makes newer ISH hubs work. Previous ones worked by lucky
coincidence.

Rotation sensor function does not work due to miss PM function.
Add common hid sensor iio pm function for rotation sensor.

Further clarification from Srinivas:

If CONFIG_PM is not defined, then this prevents this sensor to
function. So above commit caused this.

This sensor was supposed to be always on to trigger wake up in prior
external hubs. But with the new ISH hub this is not the case.

Signed-off-by: Song Hongyan <hongyan.song@intel.com>
Fixes: 2b89635e9a9e ("iio: hid_sensor_hub: Common PM functions")
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/orientation/hid-sensor-rotation.c