From: William Jhun <wjhun@ayrnetworks.com>
To: linux-mtd@lists.infradead.org
Subject: Initialization ordering problem
Date: Mon, 18 Mar 2002 22:14:49 -0800 [thread overview]
Message-ID: <20020318221449.L6821@ayrnetworks.com> (raw)
Hello,
Since mtd chip drivers (cfi_probe.c, etc) register their presence during
module (or __initcall) initialization, an attempt to probe for flash
devices before all mtd components have initialized may fail. Our
platform-specific code (which in turn calls do_map_probe() in chipreg.c)
just happens to get linked in before the mtd code. Resultingly, all
probes fail as the required chip drivers are not present. Is there a
better solution for this than changing the link order? Had the chip
drivers been available as modules and CONFIG_KMOD set, they would have
been loaded and initialized on-demand. However, when linking everything
statically, this fails miserably. I could work up some kludge to make
our platform-specific flash initialization code link in after the mtd
code, but this would be ugly.
Any ideas?
Thanks,
Will
next reply other threads:[~2002-03-19 6:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-19 6:14 William Jhun [this message]
2002-03-19 6:50 ` Initialization ordering problem Jonas Holmberg
2002-03-19 19:11 ` William Jhun
2002-03-20 9:36 ` Jonas Holmberg
2002-03-19 10:51 ` David Woodhouse
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=20020318221449.L6821@ayrnetworks.com \
--to=wjhun@ayrnetworks.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox