Skip to content

Commit 366950e

Browse files
haokexinlinusw
authored andcommitted
gpiolib: Lower verbosity when allocating hierarchy irq
In the current codes, the following 3 lines would be output to the console for each irq line. gpio gpiochip0: (gpio_thunderx): allocate IRQ 10, hwirq 0 gpio gpiochip0: (gpio_thunderx): found parent hwirq 245784 gpio gpiochip0: (gpio_thunderx): alloc_irqs_parent for 10 parent hwirq 245784 In general, there are about tens of irq lines for each gpio chip, and then it would emit so many insignificant log in the boot process. These infos are more suitable for the dbg purpose. So change these to the dbg level. With this change, about 200 lines are suppressed on my Marvell cn96xx board. Signed-off-by: Kevin Hao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent d18fddf commit 366950e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpio/gpiolib.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2006,15 +2006,15 @@ static int gpiochip_hierarchy_irq_domain_alloc(struct irq_domain *d,
20062006
if (ret)
20072007
return ret;
20082008

2009-
chip_info(gc, "allocate IRQ %d, hwirq %lu\n", irq, hwirq);
2009+
chip_dbg(gc, "allocate IRQ %d, hwirq %lu\n", irq, hwirq);
20102010

20112011
ret = girq->child_to_parent_hwirq(gc, hwirq, type,
20122012
&parent_hwirq, &parent_type);
20132013
if (ret) {
20142014
chip_err(gc, "can't look up hwirq %lu\n", hwirq);
20152015
return ret;
20162016
}
2017-
chip_info(gc, "found parent hwirq %u\n", parent_hwirq);
2017+
chip_dbg(gc, "found parent hwirq %u\n", parent_hwirq);
20182018

20192019
/*
20202020
* We set handle_bad_irq because the .set_type() should
@@ -2034,7 +2034,7 @@ static int gpiochip_hierarchy_irq_domain_alloc(struct irq_domain *d,
20342034
if (!parent_arg)
20352035
return -ENOMEM;
20362036

2037-
chip_info(gc, "alloc_irqs_parent for %d parent hwirq %d\n",
2037+
chip_dbg(gc, "alloc_irqs_parent for %d parent hwirq %d\n",
20382038
irq, parent_hwirq);
20392039
irq_set_lockdep_class(irq, gc->irq.lock_key, gc->irq.request_key);
20402040
ret = irq_domain_alloc_irqs_parent(d, irq, 1, parent_arg);

0 commit comments

Comments
 (0)