iio: imu: st_lsm6dsx: fix PM support for st_lsm6dsx i2c controller
authorLorenzo Bianconi <lorenzo@kernel.org>
Sun, 19 May 2019 08:58:23 +0000 (10:58 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 27 May 2019 09:52:30 +0000 (10:52 +0100)
commitbce0d57db388cdb1c1931d0aa7d31c77b590e0f0
tree8a8ce83f462f52f59bd5724095bb9a958e2e3036
parentdf4d737ee4d7205aaa6275158aeebff87fd14488
iio: imu: st_lsm6dsx: fix PM support for st_lsm6dsx i2c controller

Properly suspend/resume i2c slaves connected to st_lsm6dsx master
controller if the CPU goes in suspended state

Fixes: c91c1c844ebd ("imu: st_lsm6dsx: add i2c embedded controller support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c