public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* Initialization ordering problem
@ 2002-03-19  6:14 William Jhun
  2002-03-19  6:50 ` Jonas Holmberg
  2002-03-19 10:51 ` David Woodhouse
  0 siblings, 2 replies; 5+ messages in thread
From: William Jhun @ 2002-03-19  6:14 UTC (permalink / raw)
  To: linux-mtd

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-03-20  9:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-19  6:14 Initialization ordering problem William Jhun
2002-03-19  6:50 ` Jonas Holmberg
2002-03-19 19:11   ` William Jhun
2002-03-20  9:36     ` Jonas Holmberg
2002-03-19 10:51 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox