From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hanjun Guo Subject: Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver() Date: Mon, 30 Sep 2013 22:23:14 +0800 Message-ID: <52498952.9040604@linaro.org> References: <1380518035-5319-1-git-send-email-hanjun.guo@linaro.org> <1380518035-5319-2-git-send-email-hanjun.guo@linaro.org> <20130930091622.GW19304@sirena.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <20130930091622.GW19304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> Sender: linux-i2c-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Mark Brown Cc: Greg Kroah-Hartman , Wolfram Sang , "Rafael J. Wysocki" , Fabio Porcedda , Grant Likely , Linus Walleij , Libo Chen , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org, linaro-acpi-cunTk1MwBs8s++Sfvej+rw@public.gmane.org List-Id: linux-i2c@vger.kernel.org On 2013=E5=B9=B409=E6=9C=8830=E6=97=A5 17:16, Mark Brown wrote: > On Mon, Sep 30, 2013 at 01:13:52PM +0800, Hanjun Guo wrote: >> For some devices especially on platform/I2C/SPI bus, they want to >> be initialized earlier than other devices, so the driver use initcal= l >> such as subsys_initcall to make this device initialize earlier. > We're trying to move away from needing to do this and to using deferr= ed > probing to resolve init ordering issues. Should we not be able to > convert the drivers to module_X_driver()? Hi Mark, Thanks for your comments. That would be great to move away *_initcall in module driver, and this patch set is not necessary if we can use deferred probe to solve all the init order issues. Thanks Hanjun From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755675Ab3I3OXa (ORCPT ); Mon, 30 Sep 2013 10:23:30 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:54577 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755363Ab3I3OX2 (ORCPT ); Mon, 30 Sep 2013 10:23:28 -0400 Message-ID: <52498952.9040604@linaro.org> Date: Mon, 30 Sep 2013 22:23:14 +0800 From: Hanjun Guo User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Mark Brown CC: Greg Kroah-Hartman , Wolfram Sang , "Rafael J. Wysocki" , Fabio Porcedda , Grant Likely , Linus Walleij , Libo Chen , linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linaro-acpi@lists.linaro.org Subject: Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver() References: <1380518035-5319-1-git-send-email-hanjun.guo@linaro.org> <1380518035-5319-2-git-send-email-hanjun.guo@linaro.org> <20130930091622.GW19304@sirena.org.uk> In-Reply-To: <20130930091622.GW19304@sirena.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2013年09月30日 17:16, Mark Brown wrote: > On Mon, Sep 30, 2013 at 01:13:52PM +0800, Hanjun Guo wrote: >> For some devices especially on platform/I2C/SPI bus, they want to >> be initialized earlier than other devices, so the driver use initcall >> such as subsys_initcall to make this device initialize earlier. > We're trying to move away from needing to do this and to using deferred > probing to resolve init ordering issues. Should we not be able to > convert the drivers to module_X_driver()? Hi Mark, Thanks for your comments. That would be great to move away *_initcall in module driver, and this patch set is not necessary if we can use deferred probe to solve all the init order issues. Thanks Hanjun