summaryrefslogtreecommitdiffstats
path: root/drivers/base/class.c
diff options
context:
space:
mode:
authorGwendal Grignou <gwendal@chromium.org>2018-02-21 16:11:09 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-03-03 15:02:58 +0000
commit0dad1eceeb9c7497e7e2a592900ddac79b128c56 (patch)
tree6a1f397e17e73163e41166a651fa2c1a0cbad7d4 /drivers/base/class.c
parent6de543e31d187a6cc4944c76b6234aa1c8f79383 (diff)
downloadlinux-0dad1eceeb9c7497e7e2a592900ddac79b128c56.tar.bz2
iio: cros_ec: Relax sampling frequency before suspending
If an application set a tight sampling frequency, given the interrupt use is a wakeup source, suspend will not happen: the kernel will receive a wake up interrupt and will cancel the suspend process. Given cros_ec sensors type is non wake up, this patch adds prepare and complete callbacks to set 1s sampling period just before suspend. This ensures the sensor hub will not be a source of interrupt during the suspend process. Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/base/class.c')
0 files changed, 0 insertions, 0 deletions