All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genirq: provide dummy set_irq_wake()
@ 2015-03-30 13:15 ` Roger Quadros
  0 siblings, 0 replies; 21+ messages in thread
From: Roger Quadros @ 2015-03-30 13:15 UTC (permalink / raw)
  To: tglx
  Cc: cw00.choi, balbi, tony, linux-usb, linux-omap, linux-kernel,
	Roger Quadros

Without this system suspend is broken on systems that have
drivers calling enable/disable_irq_wake() for interrupts based off
the dummy irq hook.
(e.g. drivers/gpio/gpio-pcf857x.c)

http://article.gmane.org/gmane.linux.kernel/1879035

Signed-off-by: Roger Quadros <rogerq@ti.com>
---
 kernel/irq/dummychip.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c
index 988dc58..2405d7a 100644
--- a/kernel/irq/dummychip.c
+++ b/kernel/irq/dummychip.c
@@ -32,6 +32,11 @@ static unsigned int noop_ret(struct irq_data *data)
 	return 0;
 }
 
+static int noop_int_ret(struct irq_data *data, unsigned int val)
+{
+	return 0;
+}
+
 /*
  * Generic no controller implementation
  */
@@ -57,5 +62,6 @@ struct irq_chip dummy_irq_chip = {
 	.irq_ack	= noop,
 	.irq_mask	= noop,
 	.irq_unmask	= noop,
+	.irq_set_wake	= noop_int_ret,
 };
 EXPORT_SYMBOL_GPL(dummy_irq_chip);
-- 
2.1.0


^ permalink raw reply related	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-05-11 11:15 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-30 13:15 [PATCH] genirq: provide dummy set_irq_wake() Roger Quadros
2015-03-30 13:15 ` Roger Quadros
2015-03-30 18:06 ` Felipe Balbi
2015-03-30 18:06   ` Felipe Balbi
2015-03-30 18:06   ` Felipe Balbi
2015-03-30 18:06     ` Felipe Balbi
2015-04-14 10:13 ` Roger Quadros
2015-04-14 10:13   ` Roger Quadros
2015-04-14 14:02   ` Gregory CLEMENT
2015-04-15  8:07     ` Roger Quadros
2015-04-15  8:07       ` Roger Quadros
2015-04-15  8:51       ` Gregory CLEMENT
2015-04-15  8:51         ` Gregory CLEMENT
2015-04-15  8:14 ` [PATCH v2] genirq: Set IRQCHIP_SKIP_SET_WAKE flag for dummy_irq_chip Roger Quadros
2015-04-15  8:14   ` Roger Quadros
2015-04-15  9:29   ` Gregory CLEMENT
2015-04-15  9:29     ` Gregory CLEMENT
2015-04-24 19:00   ` [tip:irq/urgent] " tip-bot for Roger Quadros
2015-05-11 10:50   ` [PATCH v2] " Geert Uytterhoeven
2015-05-11 11:14     ` Roger Quadros
2015-05-11 11:14       ` Roger Quadros

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.