Request_irq fails for IRQ2

Scott Wood scottwood at freescale.com
Wed Oct 5 02:30:36 EST 2011


On 10/04/2011 06:21 AM, smitha.vanga at wipro.com wrote:
> Hi Scott,
> 
> I am able to register the IRQ now once I add the call irq_set_default_host in cpm2_pic.
> But when I call enable_irq the code throws the below warning and gives exception in enable irq at 
> spin_unlock_irqrestore(&desc->lock, flags); in enable_irq.
> 
> 
> printk(KERN_WARNING "Unbalanced enable for IRQ %d\n", irq);

The IRQ is automatically enabled when you request it.  Only call
enable_irq() if you previously called disable_irq().

-Scott



More information about the Linuxppc-dev mailing list