Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755456AbaGHSmP (ORCPT ); Tue, 8 Jul 2014 14:42:15 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:60647 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755426AbaGHSmL (ORCPT ); Tue, 8 Jul 2014 14:42:11 -0400 MIME-Version: 1.0 In-Reply-To: <20140708104655.GC6501@e106497-lin.cambridge.arm.com> References: <1404240214-9804-1-git-send-email-Liviu.Dudau@arm.com> <1404240214-9804-7-git-send-email-Liviu.Dudau@arm.com> <20140708005954.GC22939@google.com> <20140708104655.GC6501@e106497-lin.cambridge.arm.com> From: Bjorn Helgaas Date: Tue, 8 Jul 2014 12:41:50 -0600 Message-ID: Subject: Re: [PATCH v8 6/9] pci: Introduce a domain number for pci_host_bridge. To: Liviu Dudau Cc: linux-pci , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Arnd Bergmann , linaro-kernel , Tanmay Inamdar , Grant Likely , Sinan Kaya , Jingoo Han , Kukjin Kim , Suravee Suthikulanit , LKML , Device Tree ML , LAKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 8, 2014 at 4:46 AM, Liviu Dudau wrote: > On Tue, Jul 08, 2014 at 01:59:54AM +0100, Bjorn Helgaas wrote: >> I wonder if it would help to make a weak pci_domain_nr() function that >> returns "bridge->domain_nr". Then each arch could individually drop its >> pci_domain_nr() definition as it was converted, e.g., something like this: >> >> - Convert every arch pci_domain_nr() from a #define to a non-inline >> function >> - Add bridge.domain_nr, initialized from pci_domain_nr() >> - Add a weak generic pci_domain_nr() that returns bridge.domain_nr >> - Add a way to create a host bridge in a specified domain, so we can >> initialize bridge.domain_nr without using pci_domain_nr() >> - Convert each arch to use the new creation mechanism and drop its >> pci_domain_nr() implementation > > I will try to propose a patch implementing this. I think this is more of an extra credit, cleanup sort of thing. I don't think it advances your primary goal of (I think) getting arm64 PCI support in. So my advice is to not worry about unifying domain handling until later. Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/