Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291921
b: refs/heads/master
c: abd2363
h: refs/heads/master
i:
  291919: 9c2fa89
v: v3
  • Loading branch information
Grant Likely committed Feb 24, 2012
1 parent a1610e4 commit 1346260
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b4e518547da042fdc65bd4bdafd046fed13337d5
refs/heads/master: abd2363f6a5f1030b935e0bdc15cf917313b3b10
1 change: 1 addition & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2327,6 +2327,7 @@ config USE_OF
bool "Flattened Device Tree support"
select OF
select OF_EARLY_FLATTREE
select IRQ_DOMAIN
help
Include support for flattened device tree machine descriptions.

Expand Down
5 changes: 1 addition & 4 deletions trunk/arch/mips/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@

#include <linux/linkage.h>
#include <linux/smp.h>
#include <linux/irqdomain.h>

#include <asm/mipsmtregs.h>

#include <irq.h>

static inline void irq_dispose_mapping(unsigned int virq)
{
}

#ifdef CONFIG_I8259
static inline int irq_canonicalize(int irq)
{
Expand Down
14 changes: 0 additions & 14 deletions trunk/arch/mips/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,6 @@ void __init early_init_dt_setup_initrd_arch(unsigned long start,
}
#endif

/*
* irq_create_of_mapping - Hook to resolve OF irq specifier into a Linux irq#
*
* Currently the mapping mechanism is trivial; simple flat hwirq numbers are
* mapped 1:1 onto Linux irq numbers. Cascaded irq controllers are not
* supported.
*/
unsigned int irq_create_of_mapping(struct device_node *controller,
const u32 *intspec, unsigned int intsize)
{
return intspec[0];
}
EXPORT_SYMBOL_GPL(irq_create_of_mapping);

void __init early_init_devtree(void *params)
{
/* Setup flat device-tree pointer */
Expand Down
12 changes: 12 additions & 0 deletions trunk/kernel/irq/irqdomain.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,18 @@ unsigned int irq_create_of_mapping(struct device_node *controller,

domain = controller ? irq_find_host(controller) : irq_default_domain;
if (!domain) {
#ifdef CONFIG_MIPS
/*
* Workaround to avoid breaking interrupt controller drivers
* that don't yet register an irq_domain. This is temporary
* code. ~~~gcl, Feb 24, 2012
*
* Scheduled for removal in Linux v3.6. That should be enough
* time.
*/
if (intsize > 0)
return intspec[0];
#endif
printk(KERN_WARNING "irq: no irq domain found for %s !\n",
controller->full_name);
return 0;
Expand Down

0 comments on commit 1346260

Please sign in to comment.