From: Ben Warren <bwarren@qstreams.com>
To: linuxppc-embedded@ozlabs.org
Subject: Using fixed_phy with gianfar
Date: Tue, 09 Jan 2007 18:23:58 -0500 [thread overview]
Message-ID: <1168385038.3964.44.camel@saruman.qstreams.net> (raw)
Hello,
My custom board has a couple of Ethernet switches attached via RvMII to
the 'Gianfar' controllers of an MPC8349 CPU. We're using SPI instead of
MDIO for control of the switches, and it looked like the 'fixed.c' PHY
driver was the right thing to use. BTW, I'm using a 2.6.19 kernel.
When I 'ifconfig up' one of the interfaces, the Gianfar driver tries to
find a device on the MDIO bus of the variety bus_id:phy_id, where both
bus_id and phy_id are numeric (defined in fsl_devices.h). The Fixed PHY
driver creates devices on the MDIO bus with a bus_id that is a string,
for example "fixed_1@100:1". Obviously, these will never match up. The
very crude hack I made to get things working was to modify the Gianfar
driver to match the "fixed" string.
I'm sure I'm missing something, and am wondering what the correct way to
do this is. Should I have board-specific code that creates PHY devices
conforming to the Gianfar expectations instead of calling
'fixed_mdio_register_device()', or something else?
thanks,
Ben
next reply other threads:[~2007-01-09 23:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-09 23:23 Ben Warren [this message]
2007-01-10 13:11 ` Using fixed_phy with gianfar Vitaly Bordug
2007-01-10 14:22 ` Ben Warren
2007-01-10 16:04 ` Vitaly Bordug
2007-01-10 17:01 ` Ben Warren
2007-01-10 22:41 ` Andy Fleming
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=1168385038.3964.44.camel@saruman.qstreams.net \
--to=bwarren@qstreams.com \
--cc=linuxppc-embedded@ozlabs.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;
as well as URLs for NNTP newsgroup(s).