From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbaIJQYO (ORCPT ); Wed, 10 Sep 2014 12:24:14 -0400 Received: from [217.140.108.86] ([217.140.108.86]:60834 "EHLO foss-mx-na.foss.arm.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752051AbaIJQYD (ORCPT ); Wed, 10 Sep 2014 12:24:03 -0400 Date: Mon, 8 Sep 2014 15:03:21 +0100 From: Catalin Marinas To: Liviu Dudau Cc: Bjorn Helgaas , Arnd Bergmann , Rob Herring , Jason Gunthorpe , Benjamin Herrenschmidt , Will Deacon , Russell King , linux-pci , Linus Walleij , Tanmay Inamdar , Grant Likely , Sinan Kaya , Jingoo Han , Kukjin Kim , Suravee Suthikulanit , linux-arch , LKML , Device Tree ML , LAKML Subject: Re: [PATCH v10 06/10] PCI: Introduce generic domain handling for PCI busses. Message-ID: <20140908140321.GF22717@arm.com> References: <1410184472-17630-1-git-send-email-Liviu.Dudau@arm.com> <1410184472-17630-7-git-send-email-Liviu.Dudau@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1410184472-17630-7-git-send-email-Liviu.Dudau@arm.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 08, 2014 at 02:54:28PM +0100, Liviu Dudau wrote: > The handling of PCI domains (or PCI segments in ACPI speak) is > usually a straightforward affair but its implementation is > currently left to the architectural code, with pci_domain_nr(b) > querying the value of the domain associated with bus b. > > This patch introduces CONFIG_PCI_DOMAINS_GENERIC as an > option that can be selected if an architecture want a > simple implementation where the value of the domain > associated with a bus is stored in struct pci_bus. > > The architectures that select CONFIG_PCI_DOMAINS_GENERIC will > then have to implement pci_bus_assign_domain_nr() as a way > of setting the domain number associated with a root bus. > All child busses except the root bus will inherit the domain_nr > value from their parent. > > Cc: Bjorn Helgaas > Cc: Arnd Bergmann > Signed-off-by: Catalin Marinas > [Renamed pci_set_domain_nr() to pci_bus_assign_domain_nr()] > Signed-off-by: Liviu Dudau I'm probably the author here, but the patch log doesn't say so (I don't mind, just a remark). -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Mon, 8 Sep 2014 15:03:21 +0100 Subject: [PATCH v10 06/10] PCI: Introduce generic domain handling for PCI busses. In-Reply-To: <1410184472-17630-7-git-send-email-Liviu.Dudau@arm.com> References: <1410184472-17630-1-git-send-email-Liviu.Dudau@arm.com> <1410184472-17630-7-git-send-email-Liviu.Dudau@arm.com> Message-ID: <20140908140321.GF22717@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Sep 08, 2014 at 02:54:28PM +0100, Liviu Dudau wrote: > The handling of PCI domains (or PCI segments in ACPI speak) is > usually a straightforward affair but its implementation is > currently left to the architectural code, with pci_domain_nr(b) > querying the value of the domain associated with bus b. > > This patch introduces CONFIG_PCI_DOMAINS_GENERIC as an > option that can be selected if an architecture want a > simple implementation where the value of the domain > associated with a bus is stored in struct pci_bus. > > The architectures that select CONFIG_PCI_DOMAINS_GENERIC will > then have to implement pci_bus_assign_domain_nr() as a way > of setting the domain number associated with a root bus. > All child busses except the root bus will inherit the domain_nr > value from their parent. > > Cc: Bjorn Helgaas > Cc: Arnd Bergmann > Signed-off-by: Catalin Marinas > [Renamed pci_set_domain_nr() to pci_bus_assign_domain_nr()] > Signed-off-by: Liviu Dudau I'm probably the author here, but the patch log doesn't say so (I don't mind, just a remark). -- Catalin