From: Uwe Zeisberger <Uwe_Zeisberger@digi.com>
To: linux-kernel@vger.kernel.org
Cc: Andy Fleming <afleming@freescale.com>,
Jeff Garzik <jgarzik@pobox.com>,
Andrew Victor <andrew@sanpeople.com>
Subject: LXT971 driver in the phy lib
Date: Mon, 8 May 2006 18:05:32 +0200 [thread overview]
Message-ID: <20060508160531.GA2131@digi.com> (raw)
Hello,
I try to get an network interface running that has an LXT971A[1].
If I apply the following patch, the target can detect the phy.
diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c
index bef79e4..4c66fac 100644
--- a/drivers/net/phy/lxt.c
+++ b/drivers/net/phy/lxt.c
@@ -137,9 +137,9 @@ static struct phy_driver lxt970_driver =
};
static struct phy_driver lxt971_driver = {
- .phy_id = 0x0001378e,
+ .phy_id = 0x001378e0,
.name = "LXT971",
- .phy_id_mask = 0x0fffffff,
+ .phy_id_mask = 0xfffffff0,
.features = PHY_BASIC_FEATURES,
.flags = PHY_HAS_INTERRUPT,
.config_aneg = genphy_config_aneg,
According to
http://www.intel.com/design/network/products/LAN/datashts/24941402.pdf
page 90f the id registers yield 0x001378eX (with X being current
revision ID)
uzeisberger@io:~/gsrc/linux-2.6$ git grep -i 1378e drivers/net/
drivers/net/arm/at91_ether.h:#define MII_LXT971A_ID 0x001378E0
drivers/net/e1000/e1000_hw.h:#define L1LXT971A_PHY_ID 0x001378E0
drivers/net/fec.c: .id = 0x0001378e,
drivers/net/fec_8xx/fec_mii.c: .id = 0x0001378e,
drivers/net/phy/lxt.c: .phy_id = 0x0001378e,
So both variants occur more than once. (I only took a quick glance at
the usage of these ids, but I think they all use it in the same way.
That is, ID1 << 16 | ID2.)
"My" phy reports 0x001378e2 and now I wonder if there are different
chips out there with the same name.
Can anybody explain this mismatch to me? (Or point me to the right
query for google.)
Best regards
Uwe
[1] Actually it's an LXT972A, but that only means my phy lacks four
address pins. Nothing software has to handle.
--
Uwe Zeisberger
FS Forth-Systeme GmbH, A Digi International Company
Kueferstrasse 8, D-79206 Breisach, Germany
Phone: +49 (7667) 908 0 Fax: +49 (7667) 908 200
Web: www.fsforth.de, www.digi.com
next reply other threads:[~2006-05-08 16:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-08 16:05 Uwe Zeisberger [this message]
2006-05-08 16:22 ` LXT971 driver in the phy lib Andy Fleming
2006-05-10 8:02 ` [PATCH] Fix phy id for LXT971A/LXT972A Uwe Zeisberger
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=20060508160531.GA2131@digi.com \
--to=uwe_zeisberger@digi.com \
--cc=afleming@freescale.com \
--cc=andrew@sanpeople.com \
--cc=jgarzik@pobox.com \
--cc=linux-kernel@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