linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Andrew Dennison" <andrewd.lists@gmail.com>
To: "Sylvain Munaut" <tnt@246tnt.com>,
	linuxppc-embedded@ozlabs.org, massimo.vanetti@fastwebnet.it
Subject: Re: freescale lite 5200 board and kernel 2.6
Date: Sun, 16 Apr 2006 21:43:17 +1000	[thread overview]
Message-ID: <54823def0604160443tcce818dk8cca5c20593c46a7@mail.gmail.com> (raw)
In-Reply-To: <20060413102330.GA10025@raptus.dandreoli.com>

On 4/13/06, Domenico Andreoli <cavokz@gmail.com> wrote:
> no, it does not, it uses GENERIC. when PHY is detected as LXT971,
> network works.
>
> actually this is unrelated with previous runs of kernel 2.4 (as i
> stated in some previous post). sometimes PHY is detected correctly,
> sometimes is not.
>

Is the PHY address something other than 0?

If there is no pullup on MDIO (?) and the PHY address isn't 0
sometimes a PHY will be detected on the wrong address. Well that's the
problem I had with a 5200 on a custom board. I worked around something
like this with the following (edited) patch / hack. The correct answer
was to add a pullup on the board, but this is fairly safe as it won't
misdetect any of the phys supported in fec.c.

--- arch/ppc/5xxx_io/fec.c      15 Feb 2005 00:19:13 -0000      1.10
+++ arch/ppc/5xxx_io/fec.c      22 Apr 2005 05:28:12 -0000
@@ -732,7 +825,7 @@ mii_discover_phy(uint mii_reg, struct ne
        printk("mii_discover_phy\n");
 #endif

-       if ((phytype =3D (mii_reg & 0xffff)) !=3D 0xffff) {
+       if ((phytype =3D (mii_reg & 0x3ff)) !=3D 0x3ff) { /* hack - was 0xf=
fff */
                /* Got first part of ID, now get remainder.
                */
                priv->phy_id =3D phytype << 16;

      reply	other threads:[~2006-04-16 11:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-05 21:06 freescale lite 5200 board and kernel 2.6 Domenico Andreoli
2006-04-05 21:27 ` Matthias Fechner
2006-04-05 22:14   ` John Rigby
2006-04-05 23:14   ` Sylvain Munaut
2006-04-06  9:32     ` Matthias Fechner
2006-04-06 22:10   ` Domenico Andreoli
2006-04-08  8:21     ` Matthias Fechner
2006-04-10 21:54       ` Domenico Andreoli
2006-04-12 20:09         ` Matthias Fechner
2006-04-12 22:30         ` Sylvain Munaut
2006-04-13 10:23           ` Domenico Andreoli
2006-04-16 11:43             ` Andrew Dennison [this message]

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=54823def0604160443tcce818dk8cca5c20593c46a7@mail.gmail.com \
    --to=andrewd.lists@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    --cc=massimo.vanetti@fastwebnet.it \
    --cc=tnt@246tnt.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).