linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* irq identification has changed from 2.6.10 to 2.6.23. an explanation is requested
@ 2007-10-10 20:39 Eno 3 Compton
  2007-10-10 20:47 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Eno 3 Compton @ 2007-10-10 20:39 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Dear All,

I had a driver working under 2.6.10 on a mpc8248. The kernel got changed
under me to 2.6.23. Now, when I call request_irq with SIU_INT_IRQ5, which is
defined in asm-powerpc/irq.h, and once compiled and worked properly, I get
compilation errors. The compiler can't find the symbol definition because
CONFIG_PPC_MERGE  is defined. I suspect the kernel guys have migrated things
to a new arrangement, which I've been unable to discern.

An explanation or advice on where to find information about this would be
hugely appreciated.

Eno Compton

[-- Attachment #2: Type: text/html, Size: 588 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: irq identification has changed from 2.6.10 to 2.6.23. an explanation is requested
  2007-10-10 20:39 irq identification has changed from 2.6.10 to 2.6.23. an explanation is requested Eno 3 Compton
@ 2007-10-10 20:47 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2007-10-10 20:47 UTC (permalink / raw)
  To: Eno 3 Compton; +Cc: linuxppc-dev

Eno 3 Compton wrote:
> I had a driver working under 2.6.10 on a mpc8248. The kernel got changed 
> under me to 2.6.23. Now, when I call request_irq with SIU_INT_IRQ5, 
> which is defined in asm-powerpc/irq.h, and once compiled and worked 
> properly, I get compilation errors. The compiler can't find the symbol 
> definition because CONFIG_PPC_MERGE  is defined. I suspect the kernel 
> guys have migrated things to a new arrangement, which I've been unable 
> to discern.
> 
> An explanation or advice on where to find information about this would 
> be hugely appreciated.

Ideally, you should put whatever device you're trying to drive in the 
device tree, and use of_irq_to_resource() on the device node to find the 
virtual IRQ number.

Failing that, you can call irq_find_mapping(), but you'll need to either 
pass in the device node of the relevant interrupt controller, or call 
irq_set_default_host() -- but really, it's better to just use the device 
tree.

-Scott

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-10 20:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-10 20:39 irq identification has changed from 2.6.10 to 2.6.23. an explanation is requested Eno 3 Compton
2007-10-10 20:47 ` Scott Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).