]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
pinctrl: amd: Add PM debugging message for turning on/off wakes
authorMario Limonciello (AMD) <superm1@kernel.org>
Thu, 14 Aug 2025 18:34:30 +0000 (13:34 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 22 Aug 2025 06:34:08 +0000 (08:34 +0200)
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>
drivers/pinctrl/pinctrl-amd.c

index 09a5425d54ba384c24175d1b3f68cee167714fce..127eeb0104d856ad37f017543212877408da6a4b 100644 (file)
@@ -448,6 +448,9 @@ static int amd_gpio_irq_set_wake(struct irq_data *d, unsigned int on)
        u32 wake_mask = BIT(WAKE_CNTRL_OFF_S0I3) | BIT(WAKE_CNTRL_OFF_S3);
        int err;
 
+       pm_pr_dbg("Setting wake for GPIO %lu to %s\n",
+                  d->hwirq, str_enable_disable(on));
+
        raw_spin_lock_irqsave(&gpio_dev->lock, flags);
        pin_reg = readl(gpio_dev->base + (d->hwirq)*4);