From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann 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> References: <1428657168-12495-1-git-send-email-gabriel.fernandez@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org 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 List-Id: devicetree@vger.kernel.org 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 devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html