From: "Lu.Jiang" <lu.jiang@windriver.com>
To: <dedekind1@gmail.com>
Cc: linux-mtd@lists.infradead.org
Subject: Re: [PATCH] UBI:Force ubi driver load after mtd device drivers
Date: Mon, 27 Aug 2012 09:10:12 +0800 [thread overview]
Message-ID: <503AC8F4.8000601@windriver.com> (raw)
In-Reply-To: <1345807465.2848.279.camel@sauron.fi.intel.com>
于 2012年08月24日 19:24, Artem Bityutskiy 写道:
> On Fri, 2012-08-24 at 12:41 +0300, Artem Bityutskiy wrote:
>> On Wed, 2012-08-08 at 10:31 +0800, Jiang Lu wrote:
>>> diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
>>> index 0fde9fc..efbcaef 100644
>>> --- a/drivers/mtd/ubi/build.c
>>> +++ b/drivers/mtd/ubi/build.c
>>> @@ -1275,7 +1275,7 @@ out:
>>> ubi_err("UBI error: cannot initialize UBI, error %d", err);
>>> return err;
>>> }
>>> -module_init(ubi_init);
>>> +late_initcall(ubi_init);
>> The problem is that UBIFS, which is usually used on top of UBI, also
>> uses 'late_initcall()'. If we do this change, how do we guarantee that
>> UBIFS is initialized after UBI?
> Although, I think it is not really a problem and UBIFS can be
> initialized at any point - it does not depend on UBI being initialized.
>
Yes, it works fine with this change. UFIFS can be mount as rootfs device
on SPI flash after ubi_init() change to late_initcall().
Jiang Lu
next prev parent reply other threads:[~2012-08-27 1:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 2:31 [PATCH] UBI:Force ubi driver load after mtd device drivers Jiang Lu
2012-08-08 21:52 ` richard -rw- weinberger
2012-08-09 5:46 ` Warrick
2012-08-24 9:41 ` Artem Bityutskiy
2012-08-24 10:03 ` Artem Bityutskiy
2012-08-24 11:24 ` Artem Bityutskiy
2012-08-27 1:10 ` Lu.Jiang [this message]
2012-08-28 13:52 ` Artem Bityutskiy
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=503AC8F4.8000601@windriver.com \
--to=lu.jiang@windriver.com \
--cc=dedekind1@gmail.com \
--cc=linux-mtd@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.