]> git.baikalelectronics.ru Git - kernel.git/commit
iio: counter: stm32-lptimer: Add power management support
authorFabrice Gasnier <fabrice.gasnier@st.com>
Mon, 25 Feb 2019 10:42:47 +0000 (11:42 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:45 +0000 (20:19 +0100)
commitc083169e5d449c54da6529b6493379d85ef7b97c
tree92354d4928f04f2218c4db2c0c768e6fc84c4a77
parentf15ff7e4fd6c8ca664b065f5c7d18b4c9d54c1f3
iio: counter: stm32-lptimer: Add power management support

Add suspend/resume PM sleep ops. When going to low power, disable
active counter. Only active counter should be resumed: don't touch
disabled counter, as it may be used by other LPTimer MFD child driver.

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/counter/stm32-lptimer-cnt.c