From: Philippe Gerum <rpm@xenomai.org>
To: Chris Stone <chris.stone@optelian.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] GPIO irq handler on powerpc.
Date: Fri, 08 Jun 2012 17:22:13 +0200 [thread overview]
Message-ID: <4FD218A5.7030207@xenomai.org> (raw)
In-Reply-To: <623784B6C75D274389918D358E89E8BB0B7FF2B2@OPTELIAN5.optelian.local>
On 06/08/2012 05:18 PM, Chris Stone wrote:
> I am not using a 3.2.x kernel. It was not a vendor specific tree, but
> a mainline 3.0.13 kernel.
Ok, so this moved to drivers/gpio. Patch queued, thanks.
>
> Cheers,
> Chris.
>
>> -----Original Message-----
>> From: Philippe Gerum [mailto:rpm@xenomai.org]
>> Sent: Friday, June 08, 2012 11:14 AM
>> To: Chris Stone
>> Cc: xenomai@xenomai.org
>> Subject: Re: [Xenomai] GPIO irq handler on powerpc.
>>
>> 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.
>
--
Philippe.
next prev parent reply other threads:[~2012-06-08 15:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-07 21:16 [Xenomai] GPIO irq handler on powerpc Chris Stone
2012-06-08 7:15 ` Gilles Chanteperdrix
2012-06-08 14:50 ` Chris Stone
2012-06-08 15:14 ` Philippe Gerum
2012-06-08 15:18 ` Chris Stone
2012-06-08 15:22 ` Philippe Gerum [this message]
2012-06-08 15:00 ` Chris Stone
2012-06-08 7:31 ` Philippe Gerum
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD218A5.7030207@xenomai.org \
--to=rpm@xenomai.org \
--cc=chris.stone@optelian.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.