mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chris Metcalf <cmetcalf@tilera.com>
To: Yinghai Lu <yinghai@kernel.org>
Cc: Bjorn Helgaas <bhelgaas@google.com>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Tony Luck <tony.luck@intel.com>,
	David Miller <davem@davemloft.net>, x86 <x86@kernel.org>,
	Dominik Brodowski <linux@dominikbrodowski.net>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	<linux-pci@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-arch@vger.kernel.org>
Subject: Re: [PATCH 19/21] tile/PCI: Use pci_scan_root_bus instead pci_scan_bus
Date: Wed, 9 May 2012 15:32:34 -0400	[thread overview]
Message-ID: <4FAAC652.4060502@tilera.com> (raw)
In-Reply-To: <1336422606-4244-20-git-send-email-yinghai@kernel.org>

On 5/7/2012 4:30 PM, Yinghai Lu wrote:
> It will update busn_res accordingly, so we get that for last_busno.
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Cc: Chris Metcalf <cmetcalf@tilera.com>
> ---
>  arch/tile/kernel/pci.c |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c
> index 7aa2743..4a951b87 100644
> --- a/arch/tile/kernel/pci.c
> +++ b/arch/tile/kernel/pci.c
> @@ -310,6 +310,7 @@ int __devinit pcibios_init(void)
>  		if (pci_scan_flags[i] == 0 && controllers[i].ops != NULL) {
>  			struct pci_controller *controller = &controllers[i];
>  			struct pci_bus *bus;
> +			LIST_HEAD(resources);
>  
>  			if (tile_init_irqs(i, controller)) {
>  				pr_err("PCI: Could not initialize IRQs\n");
> @@ -327,7 +328,9 @@ int __devinit pcibios_init(void)
>  			 * This is inlined in linux/pci.h and calls into
>  			 * pci_scan_bus_parented() in probe.c.
>  			 */
> -			bus = pci_scan_bus(0, controller->ops, controller);
> +			pci_add_resource(&resources, &ioport_resource);
> +			pci_add_resource(&resources, &iomem_resource);
> +			bus = pci_scan_root_bus(NULL, 0, controller->ops, controller, &resources);
>  			controller->root_bus = bus;
>  			controller->last_busno = bus->busn_res.end;
>  		}

We don't want ioport_resource on tilepro, since we don't support accessing
I/O port space.

With that one line removed:

Acked-by: Chris Metcalf <cmetcalf@tilera.com>

Or, I can queue this change to take through the tile tree when the merge
window opens.  Which would you prefer?

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com


  reply	other threads:[~2012-05-09 19:32 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07 20:29 [PATCH 00/21] PCI: use busn_res to replace bus secondary/subordinate Yinghai Lu
2012-05-07 20:29 ` [PATCH 01/21] PCI: add busn_res into struct pci_bus Yinghai Lu
2012-05-07 20:29 ` [PATCH 02/21] PCI: replace secondary/subordinate with busn_res Yinghai Lu
2012-05-07 20:29 ` [PATCH 03/21] PCI: Remove secondary/subordinate in struct ci_bus Yinghai Lu
2012-05-07 20:29 ` [PATCH 04/21] PCI: Add busn_res for pci domain Yinghai Lu
2012-05-07 20:29 ` [PATCH 05/21] resource: adjust_resource handle resource without parent Yinghai Lu
2012-05-18 17:12   ` Bjorn Helgaas
2012-05-18 17:54     ` Yinghai Lu
2012-05-18 18:06       ` Bjorn Helgaas
2012-05-07 20:29 ` [PATCH 06/21] PCI: Add busn_res operation functions Yinghai Lu
2012-05-07 20:29 ` [PATCH 07/21] PCI: print conflicting entry in busn_res inserting Yinghai Lu
2012-05-07 20:29 ` [PATCH 08/21] PCI: release busn_res when removing bus Yinghai Lu
2012-05-07 20:29 ` [PATCH 09/21] PCI: Insert busn_res in pci_create_root_bus() Yinghai Lu
2012-05-07 20:29 ` [PATCH 10/21] PCI: checking busn_res in pci_scan_root_bus() Yinghai Lu
2012-05-07 20:29 ` [PATCH 11/21] PCI: Add default busn_resource Yinghai Lu
2012-05-07 20:29 ` [PATCH 12/21] PCI: Add default busn_res for pci_scan_bus() Yinghai Lu
2012-05-07 20:29 ` [PATCH 13/21] x86/PCI: add busn_res into resources list for ACPI path Yinghai Lu
2012-05-07 20:29 ` [PATCH 14/21] x86/PCI: put busn resource in pci_root_info for native host bridge drivers Yinghai Lu
2012-05-07 20:30 ` [PATCH 15/21] ia64/PCI: register busn_res for root buses Yinghai Lu
2012-05-07 20:30 ` [PATCH 16/21] sparc/PCI: " Yinghai Lu
2012-05-07 20:43   ` David Miller
2012-05-07 20:30 ` [PATCH 17/21] powerpc/PCI: " Yinghai Lu
2012-05-07 20:30 ` [PATCH 18/21] parisc/PCI: " Yinghai Lu
2012-05-07 20:30 ` [PATCH 19/21] tile/PCI: Use pci_scan_root_bus instead pci_scan_bus Yinghai Lu
2012-05-09 19:32   ` Chris Metcalf [this message]
2012-05-09 19:45     ` Yinghai Lu
2012-05-07 20:30 ` [PATCH 20/21] PCI: Register busn_res for iov bus Yinghai Lu
2012-05-07 20:30 ` [PATCH 21/21] PCI: insert busn_res for child bus Yinghai Lu
2012-05-17 22:19 ` [PATCH 00/21] PCI: use busn_res to replace bus secondary/subordinate Bjorn Helgaas
2012-05-18  2:13   ` Yinghai Lu
2012-05-18 23:32     ` Bjorn Helgaas
2012-05-19  4:38       ` Yinghai Lu
2012-05-21 20:06         ` Bjorn Helgaas

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=4FAAC652.4060502@tilera.com \
    --to=cmetcalf@tilera.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=bhelgaas@google.com \
    --cc=davem@davemloft.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux@dominikbrodowski.net \
    --cc=tony.luck@intel.com \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    --cc=yinghai@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

Powered by JetHome