From: "Dave Hylands" <dhylands@gmail.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linux-embedded@vger.kernel.org
Subject: Re: How to handle device drivers depending on another device.
Date: Tue, 9 Dec 2008 22:09:03 -0800 [thread overview]
Message-ID: <c32efac40812092209v52c3b425i9aede2f096a13bfa@mail.gmail.com> (raw)
In-Reply-To: <fa686aa40812092145h72c29ea8o7b55ab6bc0ce52ff@mail.gmail.com>
Whoops - Replying to the list this time.
Hi Grant,
> Problem: There are no guarantees that the MDIO bus controller will be
> probed before the Ethernet device.
I believe that what you're supposed to do is to have "bus" controllers
initilize themselves using subsys_initcall rather than module_init. If
you look in include/linux/init.h you can see the various initcall
definitions. module_init is at the same level as device_initcall. All
of the initcalls at one "level" are completed before moving onto the
next level.
Of course, if you're using loadable modules, then the dependencies
should take care of things for you.
--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/
next prev parent reply other threads:[~2008-12-10 6:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 5:45 How to handle device drivers depending on another device Grant Likely
2008-12-10 6:09 ` Dave Hylands [this message]
2008-12-10 14:46 ` Grant Likely
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=c32efac40812092209v52c3b425i9aede2f096a13bfa@mail.gmail.com \
--to=dhylands@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=linux-embedded@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