Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: amd: Add PM debugging message for turning on/off wakes

The GPIOs for devices not in _AEI/_EVT such as touchpad or touchscreen
won't have wakeup turned on until the suspend sequence starts.

Due to code in amd_gpio_suspend_hibernate_common() masking the interrupt
can make this difficult to follow what's going on. Add an explicit
debugging message to tell when that was turned on/off.

Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
Link: https://lore.kernel.org/20250814183430.3887973-2-superm1@kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Mario Limonciello (AMD) and committed by
Linus Walleij
54b962fa ee97f1fe

+3
+3
drivers/pinctrl/pinctrl-amd.c
··· 448 448 u32 wake_mask = BIT(WAKE_CNTRL_OFF_S0I3) | BIT(WAKE_CNTRL_OFF_S3); 449 449 int err; 450 450 451 + pm_pr_dbg("Setting wake for GPIO %lu to %s\n", 452 + d->hwirq, str_enable_disable(on)); 453 + 451 454 raw_spin_lock_irqsave(&gpio_dev->lock, flags); 452 455 pin_reg = readl(gpio_dev->base + (d->hwirq)*4); 453 456