Skip to content
Snippets Groups Projects
Commit e3da441a authored by Gao Pan's avatar Gao Pan Committed by Leonard Crestez
Browse files

MLK-11403: I2C: imx: restore pin setting for i2c


restore pin setting for i2c in suspend/resume

Signed-off-by: default avatarGao Pan <gaopan@freescale.com>
(cherry picked from commit 8aed73af218f25e0677b8980b3706246dd68790d)
Signed-off-by: default avatarRobin Gong <yibin.gong@nxp.com>

Conflicts:
	drivers/i2c/busses/i2c-imx.c
Signed-off-by: default avatarVipul Kumar <vipul_kumar@mentor.com>
parent b191668d
No related branches found
No related tags found
No related merge requests found
......@@ -1235,7 +1235,20 @@ static int i2c_imx_runtime_resume(struct device *dev)
return ret;
}
static int i2c_imx_suspend(struct device *dev)
{
pinctrl_pm_select_sleep_state(dev);
return 0;
}
static int i2c_imx_resume(struct device *dev)
{
pinctrl_pm_select_default_state(dev);
return 0;
}
static const struct dev_pm_ops i2c_imx_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(i2c_imx_suspend, i2c_imx_resume)
SET_RUNTIME_PM_OPS(i2c_imx_runtime_suspend,
i2c_imx_runtime_resume, NULL)
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment