]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: mxc: move gpio noirq suspend/resume to syscore phase
authorAnson Huang <anson.huang@nxp.com>
Fri, 9 Nov 2018 04:56:56 +0000 (04:56 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 16 Nov 2018 21:56:54 +0000 (22:56 +0100)
commitc32fad62d5f694efcf5fdccd03f98f5f6553a898
treede32fb12a8df29640b866f2b0971d9fa7d8f7c61
parent02515defef6d69b1a9ec22f45d90aff5e900fa63
gpio: mxc: move gpio noirq suspend/resume to syscore phase

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.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mxc.c