Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ede7fb45 authored by Anson Huang's avatar Anson Huang Committed by Greg Kroah-Hartman
Browse files

gpio: mxc: move gpio noirq suspend/resume to syscore phase



commit 1a5287a3dbc34cd0c02c8f64c9131bd23cdfe2bb upstream.

During noirq suspend/resume phase, GPIO irq could arrive
and its registers like IMR will be changed by irq handle
process, to make the GPIO registers exactly when it is
powered ON after resume, move the GPIO noirq suspend/resume
callback to syscore suspend/resume phase, local irq is
disabled at this phase so GPIO registers are atomic.

Fixes: c19fdaee ("gpio: mxc: add power management support")
Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMartin Hundebøll <martin@geanix.com>
Cc: <stable@vger.kernel.org> # 4.19.x+
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b1765ebd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment