pinctrl: at91: move gpio suspend/resume calls to driver's context
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 31 Aug 2022 13:56:35 +0000 (16:56 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Sep 2022 22:19:23 +0000 (00:19 +0200)
commita575207583676298f3999d41d86d81f7172fe950
tree2628d0a667a83af6b2c1ff380ab0577d8bfbfaa3
parent7fec8c9ceeedbe29be64c1b0a0610d40de39fcf8
pinctrl: at91: move gpio suspend/resume calls to driver's context

Move gpio suspend/resume execution local to driver and let it execute as
close as possible to the moment the machine specific PM code is executed
(by setting it to .noirq member of dev_pm_ops). With this the
at91_pinctrl_gpio_suspend()/at91_pinctrl_gpio_resume() calls were removed
from arch/arm/mach-at91/pm.c and also a header has been removed.
The patch has been checked on sama5d3_xplained, sam9x60ek,
sama5d2_xplained, sama7g5ek boards.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220831135636.3176406-3-claudiu.beznea@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-at91/pm.c
drivers/pinctrl/pinctrl-at91.c
include/soc/at91/pm.h [deleted file]