Hi, Machine specific PM code was calling gpio driver specific code to enable wakeup interrupts. Moved this code to the pinctrl-at91 driver as close as possible to the moment machine specific code is executed (in .noirq member of struct dev_pm_ops). The code has been tested on sama5d2_xplained, sama5d3_xplained, sam9x60ek, sama7g5ek. Along with it added 2 cleanups. Thank you, Claudiu Beznea Claudiu Beznea (3): pinctrl: at91: use kernel-doc style for documentation of at91_gpio_chip pinctrl: at91: move gpio suspend/resume calls to driver's context pinctrl: at91: use dev_dbg() instead of printk() arch/arm/mach-at91/pm.c | 15 ----- drivers/pinctrl/pinctrl-at91.c | 105 +++++++++++++++++---------------- include/soc/at91/pm.h | 16 ----- 3 files changed, 55 insertions(+), 81 deletions(-) delete mode 100644 include/soc/at91/pm.h -- 2.34.1