Subject: Re: request_irq() for external interrupt pin on MPC875 (A&M adder MPC 875)

From: Scott Wood <[email-masked]>
Date: Mon, 28 Jan 2008 11:20:04 -0600

Rognlien Dag Kristian wrote:
> With kernel 2.6.13 we used
>  
> request_irq (use_irq, irq_handler, SA_INTERRUPT|SA_SHIRQ, DEVICE_NAME, dev)
>  
> where use_irq is 12 to use the external IRQ6 pin.
>  
> We are now trying to get this driver to work with the 2.6.25 pull from 
> powerpc.git.
>  
> request_irq (use_irq, irq_handler, IRQF_SHARED, DEVICE_NAME, dev);
>  
> returns -ENOSYS on the newer kernel.
>  
> Have the IRQ mappings for the external IRQX pins been moved in the later 
> kernels?

Yes, you need to use the result of irq_create_mapping() or 
irq_of_parse_and_map().

-Scott