Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092AbcDROpa (ORCPT ); Mon, 18 Apr 2016 10:45:30 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:52178 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbcDROp1 (ORCPT ); Mon, 18 Apr 2016 10:45:27 -0400 From: Arnd Bergmann To: Tomasz Nowicki Cc: Jayachandran C , linux-arm-kernel@lists.infradead.org, Bjorn Helgaas , Will Deacon , Catalin Marinas , rafael@kernel.org, Hanjun Guo , Lorenzo Pieralisi , Sinan Kaya , jiang.liu@linux.intel.com, Jon Masters , linaro-acpi@lists.linaro.org, linux-pci@vger.kernel.org, Liviu.Dudau@arm.com, David Daney , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, robert.richter@caviumnetworks.com, Suravee.Suthikulpanit@amd.com, msalter@redhat.com, Wangyijing , Marcin Wojtas Subject: Re: [PATCH V6 08/13] PCI: generic, thunder: update to use generic ECAM API Date: Mon, 18 Apr 2016 16:44:13 +0200 Message-ID: <10639671.xGDtp1R8bk@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <5714DB37.7000907@semihalf.com> References: <1460740008-19489-1-git-send-email-tn@semihalf.com> <5714DB37.7000907@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:SBAw7gjwQHiubflqjmpc1T9L0L4RjDVaY5Gf79rrxVySFZJG4S6 6TQUvXWRsW1hLEiuj8wohlIm5NIVotvLfFS5Y0C1MlIo5KywTSXAlwRZPMEEyWI9U27XpJU 8R0RZM3pI1YZvrXARrwBoAAbBDZdcXtYIr402N9K1U/SGe3dRy5inqxGujd6MUhfdhyRAx8 uwHp0ZKAuz3PB+el50hFw== X-UI-Out-Filterresults: notjunk:1;V01:K0:zJPC1L3Fx5g=:Rxq0/70RLct43D5702ITrP W6cHg8vJuk5/pDfLk2H6hsY+t4uBmFl1tNheW9drfvlEerc+WcGTTE/goCKa2gD3Wt1+MOonn 2IkYVt3vBXbDBxlHVmE1ZlOC0gmMN8pvWbN1T4MT7YCCgOSjRF9bgX8Rt0gt1dmRh5q8ezUGr mMFgWK4xwMwPOOnErt18of9DKljHBd+tfutyjzUEbew0Ez5Xrv0efMLNFRdSrg5FxpsXW4j5n wY6hqnEXvBHfUlsU1JjNElxS72r9OHKsuFYnipojVpTdHEQ8qR1vlGvAqTdGNsR7QPi6ZV6rT jxSP3wWhup6rOVTqJ/Ag8ok0W45HaE+S7esYxv7OZsv7G4ju20ph0NdYxWlajxeJ+8faRc9h5 76UL9keUY0aXNiTYR8uVp2mq46c1XvF1w9wTY7XfwEiFIMKZkwpOLSow553ikQfQi0NCe+/SB 6bXMqn97Xi/6PKZDolLGeMuvTd+Z15SongSEgW/6DmTpg+bA+JgjbUy2jbRrXMYnhZmwZpWyv pOAZd0EC0VEGiRUfag5d7Q80/HBX6myxzNr+RLRTRlqJMrc1erte0tDUF9KB0X6kut0PmuHll UD1JdC7Qql4RSgbrV+0GSPdx8n8J56Zw/bZNq0aG/PRiiTvOLBi7m6na3qSEUTY5e4IhipZGF BO85rw3AU4Y5VmVP11QEFUzsOa0Xbp1J4UOMQlLO8vAj869+Emo+HlxRNs366WfnfbhkIXeZP IeAUt+IS3nwtOQOE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1560 Lines: 44 On Monday 18 April 2016 15:03:51 Tomasz Nowicki wrote: > On 16.04.2016 16:36, Jayachandran C wrote: > > On Sat, Apr 16, 2016 at 1:01 PM, Arnd Bergmann wrote: > >> On Saturday 16 April 2016 12:50:13 Jayachandran C wrote: > > The whole pci-thunder-*.c is to support thunder PCI quirks since the > > generic OF is handled by pci-host-common.c and generic ECAM is now > > separated - duplicating the whole file for ACPI will be bad. > > Yes, it would be too much code duplication. Also, we already know > drivers which need quirks. > > We really need to agree on best approach here. Here are requirements > which came up (please correct me if misunderstood sth): > > Arnd: > 1. Initial DT driver should be standalone [Arnd] > 2. No exported symbols [Arnd] > 3. Duplicate necessary code to ACPI framework. Correct. > JC: > 1. Adding linker section is wrong. > 2. Quirks should be exported (pci_thunder_ecam_ops), then no need for > adding linker section > 3. To much duplication to copy code into the ACPI framework. > > My opinion: > 1. I like linker section because it is easy to maintain and no need to > export symbols. > 2. We need more sophisticated algorithm for matching quirks (DMI is not > enough and not only for ThunderX drivers). Of course I am open to any > new suggestions. Agreed. > 3. To much duplication to copy code into the ACPI framework. > > Thanks in advance for any pointers. Can you be more specific about what code actually would need to be duplicated? Anything besides the config space operations? Arnd