diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-01 18:20:46 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-07-02 13:16:05 +0300 |
commit | 532e762d51d06291e3c40d5f7be8e42dce3b3d05 (patch) | |
tree | 5025c82fc0e20481cd66f7c5db811b70eb99c36e /drivers/gpio/gpio-pch.c | |
parent | 85b565c99eca5305d6f55e7855e27a427a81e6e6 (diff) | |
download | linux-532e762d51d06291e3c40d5f7be8e42dce3b3d05.tar.xz |
gpio: pch: Move IRQ status message to verbose debug level
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>
Diffstat (limited to 'drivers/gpio/gpio-pch.c')
-rw-r--r-- | drivers/gpio/gpio-pch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index e96d28bf43b4..adceee8263b2 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -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, ®_val, gpio_pins[chip->ioh]) generic_handle_irq(chip->irq_base + i); |