>From: Thomas Gleixner Montag, 18. Februar 2008 21:38disable calling Thomas, Works - no problems. There was another typo Should be better: + chip->disable : default_shutdown; Best regards, Michael Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Index: kernel/irq/chip.c =================================================================== --- kernel/irq/chip.c (revision 4270) +++ kernel/irq/chip.c (working copy) @@ -245,7 +245,20 @@ return 0; } + /* + * default shutdown function + */ +static void default_shutdown(unsigned int irq) +{ + struct irq_desc *desc = irq_desc + irq; + + desc->chip->mask(irq); + desc->status |= IRQ_MASKED; +} + + +/* * Fixup enable/disable function pointers */ void irq_chip_set_defaults(struct irq_chip *chip) @@ -257,7 +270,8 @@ if (!chip->startup) chip->startup = default_startup; if (!chip->shutdown) - chip->shutdown = chip->disable; + chip->shutdown = chip->disable != default_disable ? + chip->disable : default_shutdown; if (!chip->name) chip->name = chip->typename; if (!chip->end) --
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Stephen Rothwell | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Patrick McHardy | Re: [GIT]: Networking |
| Natalie Protasevich | [BUG] New Kernel Bugs |
