path: root/arch/mips/kernel/i8259.c
AgeCommit message (Collapse)AuthorLines
2011-09-21MIPS: i8259: Mark cascade interrupt non-threadedLiming Wang-0/+1
Cascade interrupts cannot be threaded. Signed-off-by: Liming Wang <> Signed-off-by: Bruce Ashfield <> Cc: Peter Zijlstra <> Link: Signed-off-by: Thomas Gleixner <> Cc: Patchwork: Signed-off-by: Ralf Baechle <>
2011-09-17MIPS: i8259: Correct comment for i8259Hillf Danton-1/+1
The comment for the slave PIC is changed from 8259A-1 to 8259A-2. Signed-off-by: Hillf Danton <> To: LKML <> Cc: Patchwork: Signed-off-by: Ralf Baechle <>
2011-07-16PM / MIPS: Convert i8259.c to using syscore_opsRafael J. Wysocki-16/+6
The code in arch/mips/kernel/i8259.c still hasn't been converted to using struct syscore_ops instead of a sysdev for resume and shutdown. As a result, this code doesn't build any more after suspend, resume and shutdown callbacks have been removed from struct sysdev_class. Fix this problem by converting i8259.c to using syscore_ops. Reported-and-tested-by: Roland Vossen <> Signed-off-by: Rafael J. Wysocki <> Acked-by: Ralf Baechle <>
2011-03-29MIPS: Convert the irq functions to the new namesThomas Gleixner-3/+3
Scripted with coccinelle. Signed-off-by: Thomas Gleixner <>
2011-03-25MIPS: i8259: Convert to new irq_chip functionsThomas Gleixner-20/+17
Signed-off-by: Thomas Gleixner <> To: Patchwork: Signed-off-by: Ralf Baechle <>
2010-10-07MIPS: Add missing #inclusions of <linux/irq.h>David Howells-0/+1
Add missing #inclusions of <linux/irq.h> to a whole bunch of files that should really include it. Note that this can replace #inclusions of <asm/irq.h>. This is required for the patch to sort out irqflags handling function naming to compile on MIPS. The problem is that these files require access to things like setup_irq() - which isn't available by #including <linux/interrupt.h> Signed-off-by: David Howells <> Acked-by: Ralf Baechle <>
2010-02-27MIPS: i8259: Convert IRQ controller lock to raw spinlock.Ralf Baechle-11/+11
Signed-off-by: Ralf Baechle <>
2009-03-30cpumask: remove references to struct irqaction's mask field.Rusty Russell-1/+0
Impact: cleanup It's unused, since about 1995. So remove all initialization of it in preparation for actually removing the field. Signed-off-by: Rusty Russell <> Acked-by: Thomas Gleixner <>
2008-02-08MIPS: Mark all but i8259 interrupts as no-probe.Ralf Baechle-1/+3
Use set_irq_noprobe() to mark all MIPS interrupts as non-probe. Override that default for i8259 interrupts. Signed-off-by: Ralf Baechle <> Acked-and-tested-by: Rob Landley <> Cc: Alan Cox <> Cc: Ingo Molnar <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2008-01-24Driver core: change sysdev classes to use dynamic kobject namesKay Sievers-1/+1
All kobjects require a dynamically allocated name now. We no longer need to keep track if the name is statically assigned, we can just unconditionally free() all kobject names on cleanup. Signed-off-by: Kay Sievers <> Signed-off-by: Greg Kroah-Hartman <>
2007-10-11[MIPS] checkfiles: Fix "need space after that ','" errors.Ralf Baechle-7/+7
Signed-off-by: Ralf Baechle <>
2007-10-11[MIPS] Fix "no space between function name and open parenthesis" warnings.Ralf Baechle-1/+1
Signed-off-by: Ralf Baechle <>
2007-10-11[MIPS] i8295 cleanups.Yoichi Yuasa-6/+8
o Move i8259 function declarations to include/asm-mips/i8259.h o Make i8259.c functions static where possible. Signed-off-by: Yoichi Yuasa <> Signed-off-by: Ralf Baechle <>
2007-10-11[MIPS] cleanup struct irqaction initializersThomas Gleixner-1/+3
Signed-off-by: Thomas Gleixner <> CC: Ralf Baechle <> Signed-off-by: Ralf Baechle <>
2007-10-11[MIPS] IRQ Affinity Support for SMTC on Malta PlatformKevin D. Kissell-0/+3
Signed-off-by: Kevin D. Kissell <> Signed-off-by: Ralf Baechle <>
2007-09-24[MIPS] SMTC: Make ack_bad_irq() safe with no IM backstop.Ralf Baechle-4/+1
Issue reported and original patch by Kevin Kissel, cleaner (imho) implementation by me. Signed-off-by: Ralf Baechle <>
2007-09-10[MIPS] i8259: Add disable method.Kyungmin Park-0/+1
After 76d2160147f43f982dfe881404cfde9fd0a9da21, the qemu NE2000 was frequently producing WATCHDOG timeouts. Signed-off-by: Kyungmin Park <> Cc: Ralf Baechle <> Cc: Ingo Molnar <> Signed-off-by: Andrew Morton <> Signed-off-by: Ralf Baechle <>
2007-04-27[MIPS] Register PCI host bridge resource earlierThomas Bogendoerfer-2/+2
PCI based SNI RM machines have their EISA bus behind an Intel PCI/EISA bridge. So the PCI IO range must start at 0x0000. Changing that will break the PCI bus, because i8259.c already has registered it's IO addresses before the PCI bus gets initialized. Below is a patch, which will register the PCI host bridge resources inside register_pci_controller(). It also changes i8259.c to use insert_region(), because request_resource() will fail, if the IO space of the PIT hanging of the PCI host bridge (maybe passing the resource parent to init_i8259_irqs() is a cleaner fix for that). Signed-off-by: Thomas Bogendoerfer <> Signed-off-by: Ralf Baechle <>
2007-02-20[MIPS] Drop __init from init_8259A()Atsushi Nemoto-5/+8
init_8259A() is called from i8259A_resume() so should not be marked as __init. And add some tests for whether 8259A was already initialized or not. Signed-off-by: Atsushi Nemoto <> Signed-off-by: Ralf Baechle <>
2007-02-06[MIPS] Whitespace cleanups.Ralf Baechle-2/+2
Signed-off-by: Ralf Baechle <>
2007-02-06[MIPS] Make I8259A_IRQ_BASE customizableAtsushi Nemoto-6/+14
Move I8259A_IRQ_BASE from asm/i8259.h to asm/mach-generic/irq.h and make it really customizable. And remove I8259_IRQ_BASE declared on some platforms. Currently only NEC_CMBVR4133 is using custom I8259A_IRQ_BASE value. Signed-off-by: Atsushi Nemoto <> Signed-off-by: Ralf Baechle <>
2006-12-06[MIPS] Import updates from i386's i8259.cAtsushi Nemoto-76/+86
Import many updates from i386's i8259.c, especially genirq transitions. Signed-off-by: Atsushi Nemoto <> Signed-off-by: Ralf Baechle <>
2006-11-30[MIPS] IRQ cleanupsAtsushi Nemoto-18/+3
This is a big irq cleanup patch. * Use set_irq_chip() to register irq_chip. * Initialize .mask, .unmask, .mask_ack field. Functions for these method are already exist in most case. * Do not initialize .startup, .shutdown, .enable, .disable fields if default routines provided by irq_chip_set_defaults() were suitable. * Remove redundant irq_desc initializations. * Remove unnecessary local_irq_save/local_irq_restore, spin_lock. With this cleanup, it would be easy to switch to slightly lightwait irq flow handlers (handle_level_irq(), etc.) instead of __do_IRQ(). Though whole this patch is quite large, changes in each irq_chip are not quite simple. Please review and test on your platform. Thanks. Signed-off-by: Atsushi Nemoto <> Signed-off-by: Ralf Baechle <>
2006-10-01[MIPS] Update i8259 resources.Yoichi Yuasa-2/+2
Updated i8259 resources to same as i386. Signed-off-by: Yoichi Yuasa <> Signed-off-by: Ralf Baechle <>
2006-07-13[MIPS] Eleminate interrupt migration helper use.Ralf Baechle-1/+1
> #define hw_interrupt_type irq_chip > typedef struct irq_chip hw_irq_controller; > #define no_irq_type no_irq_chip > typedef struct irq_desc irq_desc_t; Signed-off-by: Ralf Baechle <>
2006-06-29[PATCH] genirq: rename desc->handler to desc->chipIngo Molnar-2/+2
This patch-queue improves the generic IRQ layer to be truly generic, by adding various abstractions and features to it, without impacting existing functionality. While the queue can be best described as "fix and improve everything in the generic IRQ layer that we could think of", and thus it consists of many smaller features and lots of cleanups, the one feature that stands out most is the new 'irq chip' abstraction. The irq-chip abstraction is about describing and coding and IRQ controller driver by mapping its raw hardware capabilities [and quirks, if needed] in a straightforward way, without having to think about "IRQ flow" (level/edge/etc.) type of details. This stands in contrast with the current 'irq-type' model of genirq architectures, which 'mixes' raw hardware capabilities with 'flow' details. The patchset supports both types of irq controller designs at once, and converts i386 and x86_64 to the new irq-chip design. As a bonus side-effect of the irq-chip approach, chained interrupt controllers (master/slave PIC constructs, etc.) are now supported by design as well. The end result of this patchset intends to be simpler architecture-level code and more consolidation between architectures. We reused many bits of code and many concepts from Russell King's ARM IRQ layer, the merging of which was one of the motivations for this patchset. This patch: rename desc->handler to desc->chip. Originally i did not want to do this, because it's a big patch. But having both "desc->handler", "desc->handle_irq" and "action->handler" caused a large degree of confusion and made the code appear alot less clean than it truly is. I have also attempted a dual approach as well by introducing a desc->chip alias - but that just wasnt robust enough and broke frequently. So lets get over with this quickly. The conversion was done automatically via scripts and converts all the code in the kernel. This renaming patch is the first one amongst the patches, so that the remaining patches can stay flexible and can be merged and split up without having some big monolithic patch act as a merge barrier. [ build fix] [ another build fix] Signed-off-by: Ingo Molnar <> Signed-off-by: Thomas Gleixner <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2006-06-19[MIPS] C99-ify struct resource initialization.Ralf Baechle-2/+2
Signed-off-by: Ralf Baechle <>
2006-04-19[MIPS] MT: Improved multithreading support.Ralf Baechle-0/+4
Signed-off-by: Ralf Baechle <>
2005-10-29Date: Fri Jan 14 03:03:23 2005 +0000Ralf Baechle-1/+1
Locking cleanups. Signed-off-by: Ralf Baechle <>
2005-10-29Spelling fix.Ralf Baechle-1/+1
Signed-off-by: Ralf Baechle <>
2005-10-29Sparseify MIPS.Ralf Baechle-1/+1
Signed-off-by: Ralf Baechle <>
2005-10-29Convert struct hw_interrupt_type initializations to ISO C99 namedRalf Baechle-8/+7
initializers. Signed-off-by: Ralf Baechle <>
2005-09-09[PATCH] more SPIN_LOCK_UNLOCKED -> DEFINE_SPINLOCK conversionsIngo Molnar-1/+1
This converts the final 20 DEFINE_SPINLOCK holdouts. (another 580 places are already using DEFINE_SPINLOCK). Build tested on x86. Signed-off-by: Ingo Molnar <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
2005-04-16Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds-0/+331
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!