Skip to content

Commit

Permalink
pinctrl: samsung: improve wake irq info on console
Browse files Browse the repository at this point in the history
Improve the wake irq message by also printing the bank name and hwirq
number that matches this irq number.

Signed-off-by: Martin Jücker <martin.juecker@gmail.com>
Link: https://lore.kernel.org/r/20220130232122.GA119248@adroid
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
  • Loading branch information
Martin Jücker authored and Krzysztof Kozlowski committed Feb 1, 2022
1 parent 0d1b662 commit 3652dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pinctrl/samsung/pinctrl-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ static int exynos_wkup_irq_set_wake(struct irq_data *irqd, unsigned int on)
struct samsung_pin_bank *bank = irq_data_get_irq_chip_data(irqd);
unsigned long bit = 1UL << (2 * bank->eint_offset + irqd->hwirq);

pr_info("wake %s for irq %d\n", on ? "enabled" : "disabled", irqd->irq);
pr_info("wake %s for irq %u (%s-%lu)\n", on ? "enabled" : "disabled",
irqd->irq, bank->name, irqd->hwirq);

if (!on)
*our_chip->eint_wake_mask_value |= bit;
Expand Down

0 comments on commit 3652dc0

Please sign in to comment.