mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <helgaas@kernel.org>
To: Gabriele Paoloni <gabriele.paoloni@huawei.com>
Cc: "liudongdong (C)" <liudongdong3@huawei.com>,
	"arnd@arndb.de" <arnd@arndb.de>,
	"rafael@kernel.org" <rafael@kernel.org>,
	"Lorenzo.Pieralisi@arm.com" <Lorenzo.Pieralisi@arm.com>,
	"tn@semihalf.com" <tn@semihalf.com>,
	"Wangzhou (B)" <wangzhou1@hisilicon.com>,
	"pratyush.anand@gmail.com" <pratyush.anand@gmail.com>,
	"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
	"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"jcm@redhat.com" <jcm@redhat.com>,
	"Chenxin (Charles)" <charles.chenxin@huawei.com>,
	"hanjun.guo@linaro.org" <hanjun.guo@linaro.org>,
	Linuxarm <linuxarm@huawei.com>
Subject: Re: [PATCH V5 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers
Date: Mon, 21 Nov 2016 16:31:45 -0600	[thread overview]
Message-ID: <20161121223145.GC4832@bhelgaas-glaptop.roam.corp.google.com> (raw)
In-Reply-To: <EE11001F9E5DDD47B7634E2F8A612F2E1F9270ED@lhreml507-mbx>

On Mon, Nov 21, 2016 at 09:09:28AM +0000, Gabriele Paoloni wrote:

> > > +config PCI_HISI_ACPI
> > > +	depends on ACPI && ARM64
> > > +	bool "HiSilicon Hip05 and Hip06 and Hip07 SoCs ACPI PCIe
> > controllers"
> > > +	select PNP
> > > +	help
> > > +	  Say Y here if you want ACPI PCIe controller support on
> > HiSilicon
> > > +	  Hip05 and Hip06 and Hip07 SoCs
> > 
> > I'm not sure about this Kconfig setup.  Do we really want to force
> > people to enable a special config option to get this support?
> > 
> > I'm comparing it in my mind with other PCI quirks.  They're all
> > enabled as a group by CONFIG_PCI_QUIRKS.  Ultimately we want an ACPI
> > kernel to work without requiring any platform-specific config options.
> > 
> > I'm wondering if we should consolidate all the ECAM quirk code in a
> > single place (maybe pci/ecam-quirks.c, pci/ecam.c, or pci/pci-acpi.c),
> > under a config option like CONFIG_PCI_ECAM_QUIRKS or maybe even plain
> > CONFIG_PCI_QUIRKS (of course, it could still be qualified by
> > CONFIG_ACPI and CONFIG_ARM64).
> 
> What about having a single config options but keeping separate files
> for each vendors (at least as first step)?

That sounds fine.  The main thing is that we're trying to build a
generic kernel that can run on any ACPI arm64 platform, so we really
shouldn't have to turn on platform-specific config options.

> Maybe if we see that we can consolidate all the vendors in one file
> we can do it as a second step...

  reply	other threads:[~2016-11-21 22:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18  9:22 [PATCH V5 0/2] " Dongdong Liu
2016-11-18  9:22 ` [PATCH V5 1/2] PCI/ACPI: Provide acpi_get_rc_resources() for ARM64 platform Dongdong Liu
2016-11-18 22:00   ` Rafael J. Wysocki
2016-11-21  8:19     ` Dongdong Liu
2016-11-18  9:22 ` [PATCH V5 2/2] PCI/ACPI: hisi: Add ACPI support for HiSilicon SoCs Host Controllers Dongdong Liu
2016-11-18 17:08   ` Bjorn Helgaas
2016-11-21  9:09     ` Gabriele Paoloni
2016-11-21 22:31       ` Bjorn Helgaas [this message]
2016-11-22  7:43         ` Gabriele Paoloni

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=20161121223145.GC4832@bhelgaas-glaptop.roam.corp.google.com \
    --to=helgaas@kernel.org \
    --cc=Lorenzo.Pieralisi@arm.com \
    --cc=arnd@arndb.de \
    --cc=charles.chenxin@huawei.com \
    --cc=gabriele.paoloni@huawei.com \
    --cc=hanjun.guo@linaro.org \
    --cc=jcm@redhat.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linuxarm@huawei.com \
    --cc=liudongdong3@huawei.com \
    --cc=pratyush.anand@gmail.com \
    --cc=rafael@kernel.org \
    --cc=tn@semihalf.com \
    --cc=wangzhou1@hisilicon.com \
    /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

all inboxes | Powered by JetHome®