From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel@lists.xenproject.org, tim@xen.org,
stefano.stabellini@citrix.com
Subject: Re: [PATCH v6 1/6] xen/arm: IRQ: Store IRQ type in arch_irq_desc
Date: Fri, 16 May 2014 11:43:46 +0100 [thread overview]
Message-ID: <5375EBE2.9080903@linaro.org> (raw)
In-Reply-To: <1400235388.8259.17.camel@kazak.uk.xensource.com>
On 05/16/2014 11:16 AM, Ian Campbell wrote:
> On Thu, 2014-05-15 at 18:03 +0100, Julien Grall wrote:
>> On 05/15/2014 04:45 PM, Ian Campbell wrote:
>>>> +int irq_set_type(unsigned int spi, unsigned int type)
>>>> +{
>>>> + unsigned long flags;
>>>> + struct irq_desc *desc = irq_to_desc(spi);
>>>> + int ret = -EBUSY;
>>>> +
>>>> + /* This function should not be used for other than SPIs */
>>>
>>> Perhaps name the function irq_set_spi_type or something then?
>>>
>>>> + for_each_cpu( cpu, &cpu_online_map )
>>>> + {
>>>> + desc = &per_cpu(local_irq_desc, cpu)[irq];
>>>> + spin_lock_irqsave(&desc->lock, flags);
>>>> + desc->arch.type = type;
>>>
>>> Don't you need to write ICFGR on each CPU?
>>
>> This function will bail out if local_irqs_type[irq] == DT_IRQ_TYPE_INVALID.
>
> Did you mean != ?
Yes. We only want to configure IRQs that as not been configured.
Regards,
--
Julien Grall
next prev parent reply other threads:[~2014-05-16 10:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-12 17:57 [PATCH v6 0/6] xen/arm: Interrupt management reworking Julien Grall
2014-05-12 17:57 ` [PATCH v6 1/6] xen/arm: IRQ: Store IRQ type in arch_irq_desc Julien Grall
2014-05-15 15:45 ` Ian Campbell
2014-05-15 17:03 ` Julien Grall
2014-05-16 10:16 ` Ian Campbell
2014-05-16 10:43 ` Julien Grall [this message]
2014-05-12 17:57 ` [PATCH v6 2/6] xen/arm: IRQ: Replace {request, setup}_dt_irq by {request, setup}_irq Julien Grall
2014-05-12 17:57 ` [PATCH v6 3/6] xen/arm: Replace route_guest_dt_irq by route_guest_irq Julien Grall
2014-05-15 15:46 ` Ian Campbell
2014-05-12 17:57 ` [PATCH v6 4/6] xen: IRQ: Add dev_id parameter to release_irq Julien Grall
2014-05-12 17:57 ` [PATCH v6 5/6] xen/arm: IRQ: extend {request, setup}_irq to take an irqflags in parameter Julien Grall
2014-05-12 17:59 ` Julien Grall
2014-05-12 17:57 ` [PATCH v6 6/6] xen/arm: IRQ: Handle multiple action per IRQ Julien Grall
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=5375EBE2.9080903@linaro.org \
--to=julien.grall@linaro.org \
--cc=Ian.Campbell@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.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.