Skip to contentSkip to conversation

RFC: i8259.c & PCI int ack

DISCUSSION Michael Sokolov 2 participants 2 messages Dec 3, 2001

lore
Share & tools
lore
#0 lore raw
Quoted 9 lines · [email protected] wrote:

- i8259_init now takes a 'long intack_addr', which on PReP is 0xbffffff0. For platforms that only poll, this argument is irrelevant and can be 0x0

[...]

If this is the right idea, I intend to change all 8259 users:

- ppc_md.get_irq = i8259_irq       ->   ppc_md.get_irq = i8259_poll
- i8259_init()                     ->   i8259_init(0x0)
- i8259_irq(smp_processor_id())    ->   i8259_poll()

With this patch on platforms that only poll, your code will still do an ioremap on i8259_init's argument, even if it's 0. I'm not sure that is good.

MS

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines · Michael Sokolov
Quoted 5 lines · [email protected] wrote:

- i8259_init now takes a 'long intack_addr', which on PReP is 0xbffffff0. For platforms that only poll, this argument is irrelevant and can be 0x0

[...]

Quoted 7 lines
Quoted 4 lines

If this is the right idea, I intend to change all 8259 users:

- ppc_md.get_irq = i8259_irq       ->   ppc_md.get_irq = i8259_poll
- i8259_init()                     ->   i8259_init(0x0)
- i8259_irq(smp_processor_id())    ->   i8259_poll()

With this patch on platforms that only poll, your code will still do an ioremap on i8259_init's argument, even if it's 0. I'm not sure that is good.

Good point; fixed.

-Hollis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/