From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-ia64@vger.kernel.org,
linux-pci@vger.kernel.org
Subject: Re: [PATCH v3 2/2] ACPI: pci_root: pass acpi_pci_root to arch-specific scan
Date: Wed, 10 Mar 2010 18:51:41 +0900 [thread overview]
Message-ID: <4B976BAD.6070906@jp.fujitsu.com> (raw)
In-Reply-To: <20100309225330.27167.20633.stgit@bob.kio>
Looks good to me.
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thanks,
Kenji Kaneshige
Bjorn Helgaas wrote:
> The acpi_pci_root structure contains all the individual items (acpi_device,
> domain, bus number) we pass to pci_acpi_scan_root(), so just pass the
> single acpi_pci_root pointer directly.
>
> This will make it easier to add _CBA support later. For _CBA, we need the
> entire downstream bus range, not just the base bus number. We have that in
> the acpi_pci_root structure, so passing the pointer makes it available to
> the arch-specific code.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> ---
>
> arch/ia64/pci/pci.c | 5 ++++-
> arch/x86/pci/acpi.c | 5 ++++-
> drivers/acpi/pci_root.c | 2 +-
> include/acpi/acpi_drivers.h | 3 +--
> 4 files changed, 10 insertions(+), 5 deletions(-)
>
>
> diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
> index 64aff52..aa2533a 100644
> --- a/arch/ia64/pci/pci.c
> +++ b/arch/ia64/pci/pci.c
> @@ -335,8 +335,11 @@ pcibios_setup_root_windows(struct pci_bus *bus, struct pci_controller *ctrl)
> }
>
> struct pci_bus * __devinit
> -pci_acpi_scan_root(struct acpi_device *device, int domain, int bus)
> +pci_acpi_scan_root(struct acpi_pci_root *root)
> {
> + struct acpi_device *device = root->device;
> + int domain = root->segment;
> + int bus = root->secondary.start;
> struct pci_controller *controller;
> unsigned int windows = 0;
> struct pci_bus *pbus;
> diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
> index 5f11ff6..0c36ad5 100644
> --- a/arch/x86/pci/acpi.c
> +++ b/arch/x86/pci/acpi.c
> @@ -215,8 +215,11 @@ res_alloc_fail:
> return;
> }
>
> -struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int domain, int busnum)
> +struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_pci_root *root)
> {
> + struct acpi_device *device = root->device;
> + int domain = root->segment;
> + int busnum = root->secondary.start;
> struct pci_bus *bus;
> struct pci_sysdata *sd;
> int node;
> diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
> index e309f56..7f554a4 100644
> --- a/drivers/acpi/pci_root.c
> +++ b/drivers/acpi/pci_root.c
> @@ -498,7 +498,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
> * PCI namespace does not get created until this call is made (and
> * thus the root bridge's pci_dev does not exist).
> */
> - root->bus = pci_acpi_scan_root(device, segment, root->secondary.start);
> + root->bus = pci_acpi_scan_root(root);
> if (!root->bus) {
> printk(KERN_ERR PREFIX
> "Bus %04x:%02x not present in PCI namespace\n",
> diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
> index 3a4767c..16903b3 100644
> --- a/include/acpi/acpi_drivers.h
> +++ b/include/acpi/acpi_drivers.h
> @@ -102,8 +102,7 @@ int acpi_pci_bind_root(struct acpi_device *device);
>
> /* Arch-defined function to add a bus to the system */
>
> -struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain,
> - int bus);
> +struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
> void pci_acpi_crs_quirks(void);
>
> /* --------------------------------------------------------------------------
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
To: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Len Brown <lenb@kernel.org>,
linux-acpi@vger.kernel.org, linux-ia64@vger.kernel.org,
linux-pci@vger.kernel.org
Subject: Re: [PATCH v3 2/2] ACPI: pci_root: pass acpi_pci_root to arch-specific
Date: Wed, 10 Mar 2010 09:51:41 +0000 [thread overview]
Message-ID: <4B976BAD.6070906@jp.fujitsu.com> (raw)
In-Reply-To: <20100309225330.27167.20633.stgit@bob.kio>
Looks good to me.
Reviewed-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thanks,
Kenji Kaneshige
Bjorn Helgaas wrote:
> The acpi_pci_root structure contains all the individual items (acpi_device,
> domain, bus number) we pass to pci_acpi_scan_root(), so just pass the
> single acpi_pci_root pointer directly.
>
> This will make it easier to add _CBA support later. For _CBA, we need the
> entire downstream bus range, not just the base bus number. We have that in
> the acpi_pci_root structure, so passing the pointer makes it available to
> the arch-specific code.
>
> Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> ---
>
> arch/ia64/pci/pci.c | 5 ++++-
> arch/x86/pci/acpi.c | 5 ++++-
> drivers/acpi/pci_root.c | 2 +-
> include/acpi/acpi_drivers.h | 3 +--
> 4 files changed, 10 insertions(+), 5 deletions(-)
>
>
> diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c
> index 64aff52..aa2533a 100644
> --- a/arch/ia64/pci/pci.c
> +++ b/arch/ia64/pci/pci.c
> @@ -335,8 +335,11 @@ pcibios_setup_root_windows(struct pci_bus *bus, struct pci_controller *ctrl)
> }
>
> struct pci_bus * __devinit
> -pci_acpi_scan_root(struct acpi_device *device, int domain, int bus)
> +pci_acpi_scan_root(struct acpi_pci_root *root)
> {
> + struct acpi_device *device = root->device;
> + int domain = root->segment;
> + int bus = root->secondary.start;
> struct pci_controller *controller;
> unsigned int windows = 0;
> struct pci_bus *pbus;
> diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
> index 5f11ff6..0c36ad5 100644
> --- a/arch/x86/pci/acpi.c
> +++ b/arch/x86/pci/acpi.c
> @@ -215,8 +215,11 @@ res_alloc_fail:
> return;
> }
>
> -struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int domain, int busnum)
> +struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_pci_root *root)
> {
> + struct acpi_device *device = root->device;
> + int domain = root->segment;
> + int busnum = root->secondary.start;
> struct pci_bus *bus;
> struct pci_sysdata *sd;
> int node;
> diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c
> index e309f56..7f554a4 100644
> --- a/drivers/acpi/pci_root.c
> +++ b/drivers/acpi/pci_root.c
> @@ -498,7 +498,7 @@ static int __devinit acpi_pci_root_add(struct acpi_device *device)
> * PCI namespace does not get created until this call is made (and
> * thus the root bridge's pci_dev does not exist).
> */
> - root->bus = pci_acpi_scan_root(device, segment, root->secondary.start);
> + root->bus = pci_acpi_scan_root(root);
> if (!root->bus) {
> printk(KERN_ERR PREFIX
> "Bus %04x:%02x not present in PCI namespace\n",
> diff --git a/include/acpi/acpi_drivers.h b/include/acpi/acpi_drivers.h
> index 3a4767c..16903b3 100644
> --- a/include/acpi/acpi_drivers.h
> +++ b/include/acpi/acpi_drivers.h
> @@ -102,8 +102,7 @@ int acpi_pci_bind_root(struct acpi_device *device);
>
> /* Arch-defined function to add a bus to the system */
>
> -struct pci_bus *pci_acpi_scan_root(struct acpi_device *device, int domain,
> - int bus);
> +struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
> void pci_acpi_crs_quirks(void);
>
> /* --------------------------------------------------------------------------
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
next prev parent reply other threads:[~2010-03-10 9:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-09 22:53 [PATCH v3 0/2] pci_root: track downstream bus range Bjorn Helgaas
2010-03-09 22:53 ` Bjorn Helgaas
2010-03-09 22:53 ` [PATCH v3 1/2] ACPI: pci_root: save " Bjorn Helgaas
2010-03-09 22:53 ` Bjorn Helgaas
2010-03-10 9:50 ` Kenji Kaneshige
2010-03-10 9:50 ` Kenji Kaneshige
2010-03-10 16:15 ` Bjorn Helgaas
2010-03-10 16:15 ` Bjorn Helgaas
2010-03-09 22:53 ` [PATCH v3 2/2] ACPI: pci_root: pass acpi_pci_root to arch-specific scan Bjorn Helgaas
2010-03-09 22:53 ` [PATCH v3 2/2] ACPI: pci_root: pass acpi_pci_root to arch-specific Bjorn Helgaas
2010-03-10 9:51 ` Kenji Kaneshige [this message]
2010-03-10 9:51 ` Kenji Kaneshige
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=4B976BAD.6070906@jp.fujitsu.com \
--to=kaneshige.kenji@jp.fujitsu.com \
--cc=bjorn.helgaas@hp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-ia64@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 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.