gpio: crystalcove: set IRQCHIP_SKIP_SET_WAKE for the irqchip
authorAaron Lu <aaron.lu@intel.com>
Thu, 28 May 2015 02:58:49 +0000 (10:58 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 2 Jun 2015 09:22:07 +0000 (11:22 +0200)
The CrystalCove GPIO irqchip doesn't have irq_set_wake callback defined
so we should set IRQCHIP_SKIP_SET_WAKE for it or it would cause an irq
desc's wake_depth unbalanced warning during system resume phase from the
gpio_keys driver, which is the driver for the power button of the ASUS
T100 laptop.

Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-crystalcove.c

index cf28ec525e93907150df571234c11d9ac379207d..2c39811366bffc4c05e1e44721ac5efca8c6d158 100644 (file)
@@ -256,6 +256,7 @@ static struct irq_chip crystalcove_irqchip = {
        .irq_set_type           = crystalcove_irq_type,
        .irq_bus_lock           = crystalcove_bus_lock,
        .irq_bus_sync_unlock    = crystalcove_bus_sync_unlock,
+       .flags                  = IRQCHIP_SKIP_SET_WAKE,
 };
 
 static irqreturn_t crystalcove_gpio_irq_handler(int irq, void *data)