OSDN Git Service

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)
commit1a5287a3dbc34cd0c02c8f64c9131bd23cdfe2bb
treede32fb12a8df29640b866f2b0971d9fa7d8f7c61
parenteee3919c5f2949a8b7b1e9fa239d153be1538656
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