Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbbEFPeX (ORCPT ); Wed, 6 May 2015 11:34:23 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:59236 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbbEFPeT (ORCPT ); Wed, 6 May 2015 11:34:19 -0400 From: Arnd Bergmann To: Gabriel Fernandez Cc: Bjorn Helgaas , Gabriel FERNANDEZ , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Srinivas Kandagatla , Maxime Coquelin , Patrice Chotard , Russell King , Jingoo Han , Lucas Stach , Fabrice Gasnier , Kishon Vijay Abraham I , Andrew Morton , "David S. Miller" , Greg KH , Mauro Carvalho Chehab , Joe Perches , Tejun Heo , Viresh Kumar , Thierry Reding , Phil Edworthy , Minghuan Lian , Tanmay Inamdar , Muralidharan Karicheri , Sachin Kamat , Andrew Lunn , Liviu Dudau , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kernel@stlinux.com" , "linux-pci@vger.kernel.org" , Lee Jones Subject: Re: [PATCH v3 3/5] PCI: st: Provide support for the sti PCIe controller Date: Wed, 06 May 2015 17:33:33 +0200 Message-ID: <12753608.WrdVVJIhrQ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: <1428657168-12495-1-git-send-email-gabriel.fernandez@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:dD8aOiU9bmhuoPORmYa7IGdmZvriZBwae6U7wPAOlwEGUcvu+TJ m+x5nvHIIs4FcZEllFlcwnPLjIH8wjcN3B11zUJoqkWkUawKs1Kwqvv2axi7UpbGxM2GfRf nU8nWRugBWmMO7tDY8EZdmAXl9JNFjhDna3CuljvJT02kg/9afWx8y1iftoLN/RPP0x8aAR AFvPmhNf4vgmgjWbhQd8Q== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1402 Lines: 31 On Wednesday 06 May 2015 15:40:39 Gabriel Fernandez wrote: > On 6 May 2015 at 15:29, Bjorn Helgaas wrote: > > I don't really care which solution you end up with here. But please > > do take a look at how the other drivers solve the same problem. Using > > "device_initcall()" is unique in drivers/pci/host, and I don't believe > > the problem is unique. If several drivers have the same issue, they > > should solve it the same way. > > I agree with last reply of Arnd. > I will mark the probe function as __init and use > platform_driver_probe() to prevent the probe function from being > deferred. > And to prevent module unloading, i will use module_init only. > > Ok i will wait before sending a v4. I think in order to address Bjorn's concern, you should modify make sure that the keystone and imx6 drivers that call hook_fault_code() do it the same way. I think imx6 already does, but keystone does not, so please send a patch for it, explaining why it's needed. Conversely, I think the other dw-pcie based drivers should be changed not to use an __init annotation at all, and instead use module_platform_driver(). Arnd -- 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/