]> git.itanic.dy.fi Git - linux-stable/commit
gpio: mxc: move gpio noirq suspend/resume to syscore phase
authorAnson Huang <anson.huang@nxp.com>
Sun, 17 Feb 2019 22:05:33 +0000 (23:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:29:09 +0000 (10:29 +0100)
commit54e04aac37f454a2d6acf8f0f1b3a68554bfdcc2
tree6ef33ccbc41d9d49deb2c7eee85665c47a4f85c9
parent75d2ac0c0432e93362ab7fb7b250068ef772fba0
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: c19fdaeea0aa ("gpio: mxc: add power management support")
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Martin Hundebøll <martin@geanix.com>
Cc: <stable@vger.kernel.org> # 4.19.x+
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mxc.c