public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Alexander E. Patrakov" <patrakov@ums.usu.ru>
To: Christoph Hellwig <hch@infradead.org>
Cc: Henrik Carlqvist <hc1@poolhem.se>, linux-kernel@vger.kernel.org
Subject: Re: tristate and bool not enogh for Kconfig anymore
Date: Mon, 22 Oct 2007 17:27:51 +0600	[thread overview]
Message-ID: <471C8937.9010007@ums.usu.ru> (raw)
In-Reply-To: <20071022105727.GA22181@infradead.org>

Christoph Hellwig wrote:
> On Mon, Oct 22, 2007 at 04:32:19PM +0600, Alexander E. Patrakov wrote:
>   
>>> That's wrong.   You can load firmware from the initramfs even if the
>>> driver is built in.  There is no valid reason why a driver shouldn't
>>> be allowed to be built in.
>>>       
>> Could you please explain how this is supposed to work?
>>
>> As far as I understand, the kernel initializes all built-in drivers, and 
>> only then starts /init in initramfs (which is then supposed to start 
>> udevd and load firmware) - but that's too late.
>>     
>
> populate_rootfs is a rootfs_initcall which happens before all the driver
> initcalls.
>   

Correct, but irrelevant. The firmware indeed gets unpacked to rootfs 
before all driver initcalls, but stays as a dead weight during them, 
because udev (started by /init, which happens in init_post() called by 
kernel_init() after all initcalls) is needed to load this firmware.

Yes, there is a call to usermodehelper_init() before the initcalls in 
do_basic_setup(), this does mean that firmware can be loaded by means of 
the old and obsolete /sbin/hotplug mechanism, but who has /sbin/hotplug now?

-- 
Alexander E. Patrakov

  reply	other threads:[~2007-10-22 11:28 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20 11:57 [PATCH] Kconfig bug Nick Warne
2007-10-20 12:42 ` tristate and bool not enogh for Kconfig anymore Henrik Carlqvist
2007-10-20 19:17   ` Sam Ravnborg
2007-10-20 21:56     ` Randy Dunlap
2007-10-21  4:47     ` Valdis.Kletnieks
2007-10-21 10:24       ` Henrik Carlqvist
2007-10-21 16:45         ` Randy Dunlap
2007-10-21 20:42           ` Henrik Carlqvist
2007-10-21 21:03           ` Sam Ravnborg
2007-10-22  0:47             ` Randy Dunlap
2007-10-22  3:14               ` Randy Dunlap
2007-10-22  4:42                 ` Randy Dunlap
2007-10-27 23:37                 ` Roman Zippel
2007-10-22 10:11   ` Christoph Hellwig
2007-10-22 10:32     ` Alexander E. Patrakov
2007-10-22 10:57       ` Christoph Hellwig
2007-10-22 11:27         ` Alexander E. Patrakov [this message]
2007-10-22 12:53           ` Christoph Hellwig
2007-10-22 13:18             ` Alexander E. Patrakov
2007-10-22 11:46   ` Helge Hafting
2007-10-22 21:50     ` Henrik Carlqvist
2007-10-27 12:26 ` [PATCH] Kconfig bug Nick Warne

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471C8937.9010007@ums.usu.ru \
    --to=patrakov@ums.usu.ru \
    --cc=hc1@poolhem.se \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox