From: Daniel Ng <daniel.ng1234@gmail.com>
To: Mike Ditto <mditto@consentry.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: How to bring up fs_enet on 2.6.27?
Date: Thu, 19 Feb 2009 17:47:22 +1100 [thread overview]
Message-ID: <547eba1b0902182247g66c8b83se0855ff048413c01@mail.gmail.com> (raw)
In-Reply-To: <49810367.5000904@consentry.com>
On Thu, Jan 29, 2009 at 12:16 PM, Mike Ditto <mditto@consentry.com> wrote:
> But I can't explain why the driver isn't attaching for you. Did you
> try it built-in instead of as a module?
>
Hi Mike et al,
I am trying it built-in at the moment (ie. not as a module).
I've stuck a whole bunch of printks() in. This is what is happening
during boot-up:
1) fs_init() from fs_enet-main.c is called
2) This in turn calls driver_register() with the 'fs_enet' driver
3) This results in a call to bus_add_driver() with the following parameters:
driver = 'fs_enet' driver
bus = 'of_platform' bus
4) Then, driver_attach() is called with 'fs_enet' driver as the parameter
5) driver_attach() calls bus_for_each_dev() with "__driver_attach()"
and the 'of_platform' bus as the relevant parameters
However, __driver_attach() is never called from bus_for_each_dev() ie.
there seems to be no devices on the 'of_platform' bus.
Hence, is there some way to add an appropriate device to the
'of_platform' bus so that __driver_attach() can be called for that
device?
Or, perhaps it is ok for the 'of_platform' bus to have no devices on
it, and so I might be using the wrong bus?? Why would this be?
Or is it something else??
Either way, I still get the following boot error message:
IP-Config: Device `eth0' not found.
-and fs_enet_probe() is NEVER called.
Cheers,
Daniel
next prev parent reply other threads:[~2009-02-19 6:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.5.1233190802.9523.linuxppc-dev@ozlabs.org>
2009-01-29 1:16 ` How to bring up fs_enet on 2.6.27? Mike Ditto
2009-02-19 6:47 ` Daniel Ng [this message]
2009-02-19 18:44 ` Scott Wood
2009-02-20 5:01 ` Daniel Ng
2009-02-25 7:09 ` Daniel Ng
2009-02-25 9:25 ` Mike Ditto
2009-02-27 6:41 ` Daniel Ng
2009-03-04 21:00 ` Scott Wood
2009-01-28 5:04 Daniel Ng
2009-01-28 9:50 ` Laurent Pinchart
2009-01-29 0:42 ` Daniel Ng
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=547eba1b0902182247g66c8b83se0855ff048413c01@mail.gmail.com \
--to=daniel.ng1234@gmail.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=mditto@consentry.com \
/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;
as well as URLs for NNTP newsgroup(s).