From: Aaron Lu Date: Thu, 28 May 2015 02:58:49 +0000 (+0800) Subject: gpio: crystalcove: set IRQCHIP_SKIP_SET_WAKE for the irqchip X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=61e749d7e1627d375156553ea0ae83c4f6bb5a9b;p=linux-beck.git gpio: crystalcove: set IRQCHIP_SKIP_SET_WAKE for the irqchip 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 Cc: Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c index cf28ec525e93..2c39811366bf 100644 --- a/drivers/gpio/gpio-crystalcove.c +++ b/drivers/gpio/gpio-crystalcove.c @@ -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)