From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4FD216BD.3080409@xenomai.org> Date: Fri, 08 Jun 2012 17:14:05 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <623784B6C75D274389918D358E89E8BB0B7FF136@OPTELIAN5.optelian.local> <4FD1A689.8050107@xenomai.org> <623784B6C75D274389918D358E89E8BB0B7FF282@OPTELIAN5.optelian.local> In-Reply-To: <623784B6C75D274389918D358E89E8BB0B7FF282@OPTELIAN5.optelian.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] GPIO irq handler on powerpc. List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chris Stone Cc: "xenomai@xenomai.org" On 06/08/2012 04:50 PM, Chris Stone wrote: > There was a call to generic_handle_irq that should have been calling > ipipe_handle_chained_irq so I have a fix for the problem. Here is a > diff: > > diff -r 0f7a4ec77dc0 arch/powerpc/sysdev/mpc8xxx_gpio.c > --- a/arch/powerpc/sysdev/mpc8xxx_gpio.c Mon Jun 04 11:04:14 2012 -0400 > +++ b/arch/powerpc/sysdev/mpc8xxx_gpio.c Fri Jun 08 10:39:40 2012 -0400 > @@ -151,7 +151,7 @@ > > mask = in_be32(mm->regs + GPIO_IER)& in_be32(mm->regs + GPIO_IMR); > if (mask) > - generic_handle_irq(irq_linear_revmap(mpc8xxx_gc->irq, > + ipipe_handle_chained_irq(irq_linear_revmap(mpc8xxx_gc->irq, > 32 - ffs(mask))); > } > > I did not see this in the core-3.2 branch of the ipipe git, so you may need to > merge this in. Let me know if I should be providing this fix in another form. > This won't apply to a mainline 3.2.x kernel. Are these bits part of a vendor-specific tree? -- Philippe.