]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: mv64xxx: add suspend/resume support
authorGrzegorz Jaszczyk <jaz@semihalf.com>
Thu, 22 Dec 2016 15:54:02 +0000 (16:54 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 25 Jan 2017 21:17:23 +0000 (22:17 +0100)
commita55a9b8b025186602ef53e6edec2fcefa069259e
tree0f8467806541b6daf95f6f485ce6b22c89dc4016
parentb913867e12df1a5ee4828b1fe6086d55ae8f7f92
i2c: mv64xxx: add suspend/resume support

This commit implements suspend/resume support in the mv64xxx I2C
controller driver. There is no need to implement a ->suspend() hook, as
calling mv64xxx_i2c_hw_init() at ->resume() time is enough.

Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com>
Reviewed-by: Nadav Haklai <nadavh@marvell.com>
Reviewed-by: Lior Amsalem <alior@marvell.com>
Tested-by: Lior Amsalem <alior@marvell.com>
[Thomas: switch to dev_pm_ops, fix build warning when !PM.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c