[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-de8d1810fda5463ee60ba2937ca68e55a52bd9e7@git.kernel.org>
Date: Fri, 22 May 2015 02:10:26 -0700
From: tip-bot for Geert Uytterhoeven <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, tglx@...utronix.de,
rogerq@...com, gregory.clement@...e-electrons.com,
mingo@...nel.org, geert+renesas@...der.be
Subject: [tip:irq/core] genirq: Set IRQCHIP_SKIP_SET_WAKE for no_irq_chip
Commit-ID: de8d1810fda5463ee60ba2937ca68e55a52bd9e7
Gitweb: http://git.kernel.org/tip/de8d1810fda5463ee60ba2937ca68e55a52bd9e7
Author: Geert Uytterhoeven <geert+renesas@...der.be>
AuthorDate: Fri, 22 May 2015 09:58:49 +0200
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Fri, 22 May 2015 11:06:47 +0200
genirq: Set IRQCHIP_SKIP_SET_WAKE for no_irq_chip
If no_irq_chip is used for wake up (e.g. gpio-keys with a simple GPIO
controller), the following warning is printed on resume from s2ram:
WANING: CPU: 0 PID: 1046 at kernel/irq/manage.c:537 irq_set_irq_wake+0x9c/0xf8()
Unbalanced IRQ 113 wake disable
This happens because no_irq_chip does not implement
irq_chip.irq_set_wake(), causing set_irq_wake_real() to return -ENXIO,
and irq_set_irq_wake() to reset the wake_depth to zero.
Set IRQCHIP_SKIP_SET_WAKE to indicate that irq_chip.irq_set_wake() is
not implemented.
Cfr. commit 10a50f1ab5f06c9a ("genirq: Set IRQCHIP_SKIP_SET_WAKE flag
for dummy_irq_chip").
Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: Roger Quadros <rogerq@...com>
Cc: Gregory Clement <gregory.clement@...e-electrons.com>
Link: http://lkml.kernel.org/r/1432281529-23325-1-git-send-email-geert%2Brenesas@glider.be
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
---
kernel/irq/dummychip.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c
index 988dc58..6a54193 100644
--- a/kernel/irq/dummychip.c
+++ b/kernel/irq/dummychip.c
@@ -42,6 +42,7 @@ struct irq_chip no_irq_chip = {
.irq_enable = noop,
.irq_disable = noop,
.irq_ack = ack_bad,
+ .flags = IRQCHIP_SKIP_SET_WAKE,
};
/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists