From: Pierre Ossman <drzeus@drzeus.cx>
To: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] MMC: Flush mmc workqueue late in the boot sequence
Date: Sun, 13 May 2007 15:34:51 +0200 [thread overview]
Message-ID: <464713FB.2060801@drzeus.cx> (raw)
In-Reply-To: <20070511103905.08530507@dhcp-252-105.norway.atmel.com>
[-- Attachment #1: Type: text/plain, Size: 2107 bytes --]
Haavard Skinnemoen wrote:
>
> You're right about my assumptions. Are there any existing drivers that
> break them? Are there even any usb-based controllers around? I though
> most usb-mmc controllers used the USB Mass Storage class and thus
> don't use the mmc subsystem at all.
>
Yes, but they might show up in the future. My point was that we know of
scenarios that will break this, so it won't be a universal solution (even though
it might work right now).
>
> I see. The flush_workqueue approach might end up waiting for other
> things than just scanning, is that the problem? Would it be better to
> add a per-host "inital scan complete" completion that we could wait on
> instead?
>
That would be a cleaner solution yes. That way we don't exploit any current
behaviour that might change in the future.
>
> I'm not sure how many embedded people actually know how to build an
> initrd for a custom board.
>
All the ones I have on my desk right now use initrd. ;)
>
> But if you don't want this issue fixed (i.e. you don't think of it as
> an issue) I guess I have to either start working on yet another initrd
> setup or just apply the patch to our vendor kernel and be done with it.
> The latter certainly is the most tempting, but I suppose the former is
> more like how things are supposed to be done in the future.
>
Of course I see it as an issue. My concern is if we gain more than we lose.
I had a chat with David Woodhouse and Segher Boessenkool and I think we have
another approach. Basically, we move the waiting which would normally go into
the initrd and move it into the kernel. So you get something like:
"Waiting for root device /dev/mmcblk0p1..."
The only problem here is if the device never shows up, but if that was the case
you would previously get a panic, so it should not be any worse.
Does that sound like something that would work for you? From my point of view
it's a much cleaner solution that has the benefit of not being tied into a
certain subsystem (i.e. this would "fix" usb aswell).
Rgds
Pierre
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
next prev parent reply other threads:[~2007-05-13 13:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-10 10:35 [PATCH] MMC: Flush mmc workqueue late in the boot sequence Haavard Skinnemoen
2007-05-10 12:04 ` Pierre Ossman
2007-05-10 12:37 ` Haavard Skinnemoen
2007-05-10 13:45 ` Pierre Ossman
2007-05-10 14:33 ` Haavard Skinnemoen
2007-05-10 15:58 ` Pierre Ossman
2007-05-10 16:27 ` Haavard Skinnemoen
2007-05-10 17:51 ` Matt Reimer
2007-05-11 7:44 ` Haavard Skinnemoen
2007-05-10 19:41 ` Pierre Ossman
2007-05-11 8:39 ` Haavard Skinnemoen
2007-05-13 13:34 ` Pierre Ossman [this message]
2007-05-13 13:47 ` Haavard Skinnemoen
2007-05-13 14:24 ` Pierre Ossman
2007-05-13 14:37 ` Haavard Skinnemoen
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=464713FB.2060801@drzeus.cx \
--to=drzeus@drzeus.cx \
--cc=hskinnemoen@atmel.com \
--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