From: Arnd Bergmann <arnd@arndb.de>
To: Ley Foon Tan <lftan@altera.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Linux-Arch <linux-arch@vger.kernel.org>,
linux-pci@vger.kernel.org
Subject: Re: [PATCH 1/2] nios2: Add architectural support for PCIe
Date: Tue, 29 Sep 2015 09:37:09 +0200 [thread overview]
Message-ID: <3218771.zBxT0jYLDs@wuerfel> (raw)
In-Reply-To: <CAFiDJ5_jkEqdAY=TtKOg6=GzT8i4qAFdnSH_z1RsoPVU2Vfr1Q@mail.gmail.com>
On Tuesday 29 September 2015 11:12:24 Ley Foon Tan wrote:
> >
> > I think that would be good, yes. We probably picked defaults for the
> > asm-generic version that are enough to build with CONFIG_PCI disabled,
> > but there are useful defaults for the other case as well.
> >
> > Most architectures that use the file don't support PCI, so you can just
> > add stuff inside of #ifdef CONFIG_PCI. For the remaining 13 architectures
> > (git grep -l generic/pci.h | wc), see whether there are conflicts first.
> > The normal way would be to have the arch specific definition come before
> > the #include, and then do something like
> >
> > #ifndef pci_proc_domain
> > #define pci_proc_domain pci_proc_domain
> > static inline int pci_proc_domain(struct pci_bus *bus)
> > {
> > #ifdef CONFIG_PCI_DOMAINS_GENERIC
> > return pci_domain_nr(bus);
> > #else
> > return 1;
> > }
> > #endif
>
> Okay, will try add them to asm-generic.
Thanks
> Do you prefer to send it as separate patch or can be part of this patchset?
I prefer the patches to be part of this series and merged through together
with them.
Arnd
next prev parent reply other threads:[~2015-09-29 7:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-22 7:19 [PATCH 0/2] Add PCI support on nios2 architecture Ley Foon Tan
2015-09-22 7:19 ` [PATCH 1/2] nios2: Add architectural support for PCIe Ley Foon Tan
2015-09-22 8:18 ` Arnd Bergmann
2015-09-22 10:53 ` Ley Foon Tan
2015-09-22 11:42 ` Arnd Bergmann
2015-09-29 3:12 ` Ley Foon Tan
2015-09-29 7:37 ` Arnd Bergmann [this message]
2015-09-29 10:00 ` Ley Foon Tan
2015-09-22 7:19 ` [PATCH 2/2] PCI: Build setup-irq.o for nios2 Ley Foon Tan
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=3218771.zBxT0jYLDs@wuerfel \
--to=arnd@arndb.de \
--cc=bhelgaas@google.com \
--cc=lftan@altera.com \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.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