mbox series

[0/3] pinctrl: at91: cleanups

Message ID 20220831135636.3176406-1-claudiu.beznea@microchip.com
Headers show
Series pinctrl: at91: cleanups | expand

Message

Claudiu Beznea Aug. 31, 2022, 1:56 p.m. UTC
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

Comments

Linus Walleij Sept. 2, 2022, 10:19 p.m. UTC | #1
On Wed, Aug 31, 2022 at 3:54 PM Claudiu Beznea
<claudiu.beznea@microchip.com> wrote:

> 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.

Patches applied!

Yours,
Linus Walleij