From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755465AbcBCVCf (ORCPT ); Wed, 3 Feb 2016 16:02:35 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:49648 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751745AbcBCVCd (ORCPT ); Wed, 3 Feb 2016 16:02:33 -0500 From: Arnd Bergmann To: Bjorn Helgaas Cc: Joao Pinto , Vineet.Gupta1@synopsys.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org, CARLOS.PALMINHA@synopsys.com, Alexey.Brodkin@synopsys.com, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org Subject: Re: [PATCH v7 2/2] add new platform driver for PCI RC Date: Wed, 03 Feb 2016 22:01:54 +0100 Message-ID: <2915520.tvWP9ESSNu@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20160203183844.GC10879@localhost> References: <56B242F0.6040704@synopsys.com> <20160203183844.GC10879@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:fR10xombm75ItY8f1CkPXZELF/d/79vhmSrRLRMi0YthAbe6wiY ujEFGUjts3w4w7yyKWOrrgGFy5K7BJc/EAnh2VfoZqbQw5DFDBMHRBPRlo5GtC3dUTuTihv g/t2kHyA92iMjc12vsJI/7vZb9rsYyrIl5IATh+XJR0mgOaxaOCQypG3nacRDw4kfpL8NJB VgDqsbNZyJ3Dbp6jRn0LQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:+sU9XshqS08=:81BfqywZEhzHKLB0na49DY iIlXTOWpJO4vXQAvUMG0iccjCP6Z5WVfaaQIt4FhXNYD1O9LmU80YbcgTzQ2fXXBy5Gj5t7cO GNxy0qFG3AjJNZ/IKpcnJSAg8xMBXahB1QQ6nUuRJKNtGYSVCJEfjyl8yu3wuLeTUhjn9ST5F rMgA32Rxij8tZO29qdMg/iMkNJTfWgfPz4Vz7qBVBzdPOQ+9AsQck2hqhJW0MGTp65dtANP4o +ymUPsoA7sdE3yey+oeEULO40eJho/qUcn6QKlbVbQqguMZ5Cl7BzNkP8bvU4vqv1LbuaAnB2 5MjBYEZdduWhKvDdBTr0tjMvF7fSZYXCcnG352n8FWzlYEITgVGepcvH1cBXrIhN6xUL5eGq1 AEtXWSNS0Mbh5V2ZpbQ+Y6ecafUv/ZRJObRvdMkXTR0ePSHntcLzyRG4taVCcnXFdj5ASREnF 1YSXJL9/ZbFMhprEh7kgcbMdoVZdkKAmOlmPNapDE0Fhy4Zbhj6bbeopLlj3CCMJvvDu2lJVT MGt4gM/kNW02OasVSIorhdlPJ3Nb3ALBcvqcsF3iLd+jXUmwvjygKPJrW+AvtINlQv2keM7jh 523v/5cm8vGM2Ahi3hDbXPxtVi+Tj74MNFhHkepib1NBRlbJF+q3vVWabgaWhQ65VLKREeIPW O195A70yzMCAu2rLEdOOyFwSTuCzjCHbDKw8eSQDjcWNP7n9p7BJe/IL96h9hzYxB+BO5m293 jozzP7DFDR4lU7BI Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 03 February 2016 12:38:44 Bjorn Helgaas wrote: > On Wed, Feb 03, 2016 at 06:12:00PM +0000, Joao Pinto wrote: > > > - replace "snps,pcie-synopsys" for "snps,pcie-synopsys-ipk"? > > This is a question for Arnd. > > > - rename the driver to pcie-synopsys-ipk? > > It doesn't seem necessary to me to include both "synopsys" and "ipk" in the > filename and the driver name. Take a look at what the existing drivers do, > and do something similar. The "synopsys" can go away, it's already in the vendor field of the string. "ipk" is still a bit unspecific, I was hoping to see a specific chip and/or version of the PCIe part. Something like compatible = "snps,ipk2040-pcie", "snps,ipk-pcie", "snps,dw-pcie-1.23", "snps,dw-pcie"; which would indicate that there is a chip called "ipk2040" in a family called "ipk", and this includes the designware pcie implementation in version 1.23. > > - update the devicetree documentation referring that the ranges also include the > > config space > > Another one for Arnd. This one is wrong, the ranges should *not* include the config space, and if they currently do, you must change the driver. The generic dw-pcie driver still accepts the config space in the ranges for backwards compatibility with some of the earlier front-ends that mistakenly did this, but new driver should not do the same, and we should probably add some code in the common driver to prevent it for front-ends other than the ones we have to keep compatibility with. Arnd