Skip to content

Commit

Permalink
gpio: pch: Move IRQ status message to verbose debug level
Browse files Browse the repository at this point in the history
If one of the devices which share the same IRQ line doesn't care about
interrupt GPIO will spam the log with status equal to 0x00. Move IRQ
status message to verbose debug level (it still might be useful).

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
  • Loading branch information
Andy Shevchenko committed Jul 2, 2020
1 parent 85b565c commit 532e762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-pch.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ static irqreturn_t pch_gpio_handler(int irq, void *dev_id)
unsigned long reg_val = ioread32(&chip->reg->istatus);
int i;

dev_dbg(chip->dev, "irq=%d status=0x%lx\n", irq, reg_val);
dev_vdbg(chip->dev, "irq=%d status=0x%lx\n", irq, reg_val);

reg_val &= BIT(gpio_pins[chip->ioh]) - 1;

for_each_set_bit(i, &reg_val, gpio_pins[chip->ioh])
generic_handle_irq(chip->irq_base + i);

Expand Down

0 comments on commit 532e762

Please sign in to comment.