diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-06-14 14:49:21 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:32:19 +0800 |
commit | ff6fe0be0892035964c338fd803024427c5e1340 (patch) | |
tree | 4bbce77fc5e395bf7ca2903e0cfc2dbe76a3ebd3 /drivers/gpio | |
parent | 440fdc2869f7637e64fad3cdbf4d9db5d479f586 (diff) |
MLK-18611-2 gpio: mxc: add noirq suspend/resume support
On some i.MX platforms, GPIO banks may lose power
when system suspend, and some peripheral devices
resume may need to use GPIO during resume phase
before GPIO resume, so GPIO needs to be restored
as early as possible, this patch moves GPIO
restore operation to noirq resume phase.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-mxc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c index 2fc4d316419a..a5ac8b9468d4 100644 --- a/drivers/gpio/gpio-mxc.c +++ b/drivers/gpio/gpio-mxc.c @@ -678,6 +678,7 @@ static int __maybe_unused mxc_gpio_resume(struct device *dev) static const struct dev_pm_ops mxc_gpio_dev_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(mxc_gpio_suspend, mxc_gpio_resume) + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(mxc_gpio_runtime_suspend, mxc_gpio_runtime_resume) SET_RUNTIME_PM_OPS(mxc_gpio_runtime_suspend, mxc_gpio_runtime_resume, NULL) }; |