Skip to content

Commit c9a2364

Browse files
superm1rafaeljw
authored andcommitted
pinctrl: amd: Use pm_pr_dbg to show debugging messages
To make the GPIO tracking around suspend easier for end users to use, link it with pm_debug_messages. This will make discovering sources of spurious GPIOs around suspend easier. Signed-off-by: Mario Limonciello <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent f754006 commit c9a2364

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/pinctrl/pinctrl-amd.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <linux/pinctrl/pinconf.h>
3131
#include <linux/pinctrl/pinconf-generic.h>
3232
#include <linux/pinctrl/pinmux.h>
33+
#include <linux/suspend.h>
3334

3435
#include "core.h"
3536
#include "pinctrl-utils.h"
@@ -636,9 +637,8 @@ static bool do_amd_gpio_irq_handler(int irq, void *dev_id)
636637
regval = readl(regs + i);
637638

638639
if (regval & PIN_IRQ_PENDING)
639-
dev_dbg(&gpio_dev->pdev->dev,
640-
"GPIO %d is active: 0x%x",
641-
irqnr + i, regval);
640+
pm_pr_dbg("GPIO %d is active: 0x%x",
641+
irqnr + i, regval);
642642

643643
/* caused wake on resume context for shared IRQ */
644644
if (irq < 0 && (regval & BIT(WAKE_STS_OFF)))

0 commit comments

Comments
 (0)