Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40290
b: refs/heads/master
c: f4d4c35
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Oct 25, 2006
1 parent 3b33e51 commit 711a8c7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 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: f49196a5f53aa62a964b08ffa2c59699a0c8eb53
refs/heads/master: f4d4c354bca18210296cc0a8f592c0cdb720bf20
4 changes: 3 additions & 1 deletion trunk/arch/powerpc/platforms/chrp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,10 @@ static void __init chrp_find_8259(void)
" address, polling\n");

i8259_init(pic, chrp_int_ack);
if (ppc_md.get_irq == NULL)
if (ppc_md.get_irq == NULL) {
ppc_md.get_irq = i8259_irq;
irq_set_default_host(i8259_get_host());
}
if (chrp_mpic != NULL) {
cascade_irq = irq_of_parse_and_map(pic, 0);
if (cascade_irq == NO_IRQ)
Expand Down
5 changes: 5 additions & 0 deletions trunk/arch/powerpc/sysdev/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ static struct irq_host_ops i8259_host_ops = {
.xlate = i8259_host_xlate,
};

struct irq_host *i8259_get_host(void)
{
return i8259_host;
}

/**
* i8259_init - Initialize the legacy controller
* @node: device node of the legacy PIC (can be NULL, but then, it will match
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-powerpc/i8259.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#ifdef CONFIG_PPC_MERGE
extern void i8259_init(struct device_node *node, unsigned long intack_addr);
extern unsigned int i8259_irq(void);
extern struct irq_host *i8259_get_host(void);
#else
extern void i8259_init(unsigned long intack_addr, int offset);
extern int i8259_irq(void);
Expand Down

0 comments on commit 711a8c7

Please sign in to comment.