All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Generic IRQ: Add unlocked version of set_irq_handler()
@ 2007-12-11 22:54 Kevin Hilman
  2007-12-12 10:24 ` Ingo Molnar
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2007-12-11 22:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: Thomas Gleixner, Ingo Molnar, Kevin Hilman

Add unlocked version for use by irq_chip.set_type handlers which may
wish to change handler to level or edge handler when IRQ type is
changed.

The normal set_irq_handler() call cannot be used because it tries to
take irq_desc.lock which is already held when the irq_chip.set_type
hook is called.

Signed-off-by: Kevin Hilman <khilman@mvista.com>
---
 include/linux/irq.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/linux/irq.h b/include/linux/irq.h
index efc8853..4669be0 100644
--- a/include/linux/irq.h
+++ b/include/linux/irq.h
@@ -339,6 +339,13 @@ extern void
 __set_irq_handler(unsigned int irq, irq_flow_handler_t handle, int is_chained,
 		  const char *name);
 
+/* caller has locked the irq_desc and both params are valid */
+static inline void __set_irq_handler_unlocked(int irq,
+					      irq_flow_handler_t handler)
+{
+	irq_desc[irq].handle_irq = handler;
+}
+
 /*
  * Set a highlevel flow handler for a given IRQ:
  */
-- 
1.5.3.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH/RFC] OMAP GPIO IRQ rework for generic IRQ subsystem
@ 2007-12-05  6:00 Kevin Hilman
  2007-12-05  6:00 ` [PATCH] ARM: OMAP: Fix GPIO IRQ unmask Kevin Hilman
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Hilman @ 2007-12-05  6:00 UTC (permalink / raw)
  To: linux-omap; +Cc: David Brownell, Russell King, Remy Bohmer, linux-rt-users

This patchset aims to cleanup OMAP GPIO IRQ handling and use the
generic IRQ framework where possible.  In the process it fixes a
couple bugs and enables correct behavior when GPIO IRQ handlers are
threaded by the -rt patch.

Tested on OMAP3430SDP and 2430SDP with and without -rt patch.

Needs some testing on platforms using edge-triggered IRQs with and
without IRQ patch.

Comments welcome,

Kevin

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

end of thread, other threads:[~2007-12-12 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 22:54 [PATCH] Generic IRQ: Add unlocked version of set_irq_handler() Kevin Hilman
2007-12-12 10:24 ` Ingo Molnar
2007-12-12 15:14   ` Thomas Gleixner
  -- strict thread matches above, loose matches on Subject: below --
2007-12-05  6:00 [PATCH/RFC] OMAP GPIO IRQ rework for generic IRQ subsystem Kevin Hilman
2007-12-05  6:00 ` [PATCH] ARM: OMAP: Fix GPIO IRQ unmask Kevin Hilman
2007-12-05  6:00   ` [PATCH] ARM: OMAP: Clear level-triggered GPIO interrupts in unmask hook Kevin Hilman
2007-12-05  6:00     ` [PATCH] Generic IRQ: Add unlocked version of set_irq_handler() Kevin Hilman

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.