public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: ARM64 PCIe legacy interrupts
Date: Tue, 06 Oct 2015 12:30:19 +0200	[thread overview]
Message-ID: <5647794.zPHEyLbn48@wuerfel> (raw)
In-Reply-To: <loom.20151006T121259-647@post.gmane.org>

On Tuesday 06 October 2015 10:17:11 bharat kumar gogada wrote:
> I have a confusion in handling legacy interrupts in driver, I'm seeing that
> for legacy handling there is separate node being created. Ex: for
> pcie-xilinx.c the following node is being used
> 
> pcie_intc: interrupt-controller {
>                         interrupt-controller;
>                         #address-cells = <0>;
>                         #interrupt-cells = <1>;
>                 };
> 
> Why do we need a separate child node for legacy handling

This is a special case where the interrupt lines are not simply
passed through to the parent interrupt controller but require
an Ack in a separate register.

Most sane implementations only need an interrupt-map property
that documents how the legacy interrupts are wired to the GIC.

> and why is the address cells parameter assigned zero value

It means that the interrupt can be identified by the interrupt
number itself and does not need to be identified by an address
as well. This is true for almost all interrupt controllers.

	Arnd

      reply	other threads:[~2015-10-06 10:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 12:29 ARM64 PCIe legacy interrupts bharat kumar gogada
2015-10-05  5:45 ` Pratyush Anand
2015-10-06 10:17   ` bharat kumar gogada
2015-10-06 10:30     ` Arnd Bergmann [this message]

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=5647794.zPHEyLbn48@wuerfel \
    --to=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox