* Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver()
[not found] ` <1380518035-5319-2-git-send-email-hanjun.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2013-09-30 9:16 ` Mark Brown
[not found] ` <20130930091622.GW19304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-30 10:15 ` Wolfram Sang
1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2013-09-30 9:16 UTC (permalink / raw)
To: Hanjun Guo
Cc: Greg Kroah-Hartman, Wolfram Sang, Rafael J. Wysocki,
Fabio Porcedda, Grant Likely, Linus Walleij, Libo Chen,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-QSEj5FYQhm4dnm+yROfE0A,
linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
linaro-acpi-cunTk1MwBs8s++Sfvej+rw
[-- Attachment #1: Type: text/plain, Size: 448 bytes --]
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()?
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver()
[not found] ` <1380518035-5319-2-git-send-email-hanjun.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-09-30 9:16 ` [PATCH 1/4] driver core: introduce helper macro initcall_driver() Mark Brown
@ 2013-09-30 10:15 ` Wolfram Sang
2013-09-30 14:28 ` Hanjun Guo
1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2013-09-30 10:15 UTC (permalink / raw)
To: Hanjun Guo
Cc: Greg Kroah-Hartman, Mark Brown, Rafael J. Wysocki, Fabio Porcedda,
Grant Likely, Linus Walleij, Libo Chen,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-QSEj5FYQhm4dnm+yROfE0A,
linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
linaro-acpi-cunTk1MwBs8s++Sfvej+rw
[-- Attachment #1: Type: text/plain, Size: 748 bytes --]
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.
And this is something we want to get rid of in favor of deferred
probing.
>
> But for those drivers, lots of them just do nothing special in
> xxx_initcall/exit, so introduce a helper macro initcall_driver() to
> eliminate lots of boilerplate just like module_driver() did.
>
> Signed-off-by: Hanjun Guo <hanjun.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
So, NACK because using some *_initcall in drivers should not be
encouraged.
Thanks,
Wolfram
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver()
[not found] ` <20130930091622.GW19304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
@ 2013-09-30 14:23 ` Hanjun Guo
0 siblings, 0 replies; 4+ messages in thread
From: Hanjun Guo @ 2013-09-30 14:23 UTC (permalink / raw)
To: Mark Brown
Cc: Greg Kroah-Hartman, Wolfram Sang, Rafael J. Wysocki,
Fabio Porcedda, Grant Likely, Linus Walleij, Libo Chen,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-QSEj5FYQhm4dnm+yROfE0A,
linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
linaro-acpi-cunTk1MwBs8s++Sfvej+rw
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/4] driver core: introduce helper macro initcall_driver()
2013-09-30 10:15 ` Wolfram Sang
@ 2013-09-30 14:28 ` Hanjun Guo
0 siblings, 0 replies; 4+ messages in thread
From: Hanjun Guo @ 2013-09-30 14:28 UTC (permalink / raw)
To: Wolfram Sang
Cc: Greg Kroah-Hartman, Mark Brown, Rafael J. Wysocki, Fabio Porcedda,
Grant Likely, Linus Walleij, Libo Chen,
linux-i2c-u79uwXL29TY76Z2rM5mHXA,
linux-spi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
patches-QSEj5FYQhm4dnm+yROfE0A,
linaro-kernel-cunTk1MwBs8s++Sfvej+rw,
linaro-acpi-cunTk1MwBs8s++Sfvej+rw
On 2013年09月30日 18:15, Wolfram Sang 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.
> And this is something we want to get rid of in favor of deferred
> probing.
>
>> But for those drivers, lots of them just do nothing special in
>> xxx_initcall/exit, so introduce a helper macro initcall_driver() to
>> eliminate lots of boilerplate just like module_driver() did.
>>
>> Signed-off-by: Hanjun Guo <hanjun.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> So, NACK because using some *_initcall in drivers should not be
> encouraged.
Ok, got it. I agree with you, *_initcall in module driver is really
confusing people :)
Thanks
Hanjun
>
> Thanks,
>
> Wolfram
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-09-30 14:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1380518035-5319-1-git-send-email-hanjun.guo@linaro.org>
[not found] ` <1380518035-5319-2-git-send-email-hanjun.guo@linaro.org>
[not found] ` <1380518035-5319-2-git-send-email-hanjun.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-09-30 9:16 ` [PATCH 1/4] driver core: introduce helper macro initcall_driver() Mark Brown
[not found] ` <20130930091622.GW19304-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2013-09-30 14:23 ` Hanjun Guo
2013-09-30 10:15 ` Wolfram Sang
2013-09-30 14:28 ` Hanjun Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).