Skip to content
Commit 29cf142c authored by Song Hongyan's avatar Song Hongyan Committed by Greg Kroah-Hartman
Browse files

iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver)



commit 8af644a7 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: default avatarSong Hongyan <hongyan.song@intel.com>
Fixes: 2b89635e ("iio: hid_sensor_hub: Common PM functions")
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent caff14e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment