From: "David Müller (ELSOFT AG)" <d.mueller@elsoft•ch>
To: Felix Radensky <felix@allot•com>
Cc: linuxppc-embedded@lists•linuxppc.org
Subject: Re: ppc405_enet problems
Date: Tue, 11 Dec 2001 08:51:33 +0100 [thread overview]
Message-ID: <3C15BB05.7070702@elsoft.ch> (raw)
In-Reply-To: 3C14B86D.726DBDE6@allot.com
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
It looks like the MII controller is not setting the error flag for the
first access (reading of PHYIR1 in find_phy(ppc405_phy.c)
Perhaps my work-around (see attached file) will help you too.
Felix Radensky wrote:
> Hi,
>
> I'm trying to run the latest linuxppc_2_4_devel kernel on
> our custom 405GP based board. I get kernel panic when an
> attempt is made to probe for ethernet controller phy:
>
> Kernel panic: eth0: PHY id 0xfbc85c20 is not supported!
>
> The phy is National Semiconductor DP83846AVHG.
> It works fine with Monta Vista HHL 2.0 kernel.
>
> What you think could be the problem ?
>
> TIA.
>
> Felix.
>
Dave
[-- Attachment #2: net_patch.txt --]
[-- Type: text/plain, Size: 596 bytes --]
--- 1.5/drivers/net/ppc405_phy.c Thu Oct 25 00:44:15 2001
+++ edited/ppc405_phy.c Mon Dec 3 16:51:05 2001
@@ -707,14 +707,17 @@
{
struct fec_enet_private *fep;
int i;
- uint phy_reg;
+ uint phy_reg, phy_reg2;
uint phytype;
fep = dev->priv;
for ( i = 0; i < MAX_NUM_PHYS; i++)
- if (!(fec_enet_mdio_read(i, mk_mii_read(MII_REG_PHYIR1),
- &phy_reg)))
+ if (!((fec_enet_mdio_read(i, mk_mii_read(MII_REG_PHYIR1),
+ &phy_reg)) ||
+ (fec_enet_mdio_read(i, mk_mii_read(MII_REG_PHYIR2),
+ &phy_reg2))))
+
break;
fep->phy_addr = i;
next prev parent reply other threads:[~2001-12-11 7:51 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-10 13:28 ppc405_enet problems Felix Radensky
2001-12-10 16:17 ` Tom Rini
2001-12-10 17:56 ` Felix Radensky
2001-12-10 20:03 ` Armin Kuster
2001-12-11 7:51 ` David Müller (ELSOFT AG) [this message]
2001-12-11 13:32 ` Felix Radensky
2001-12-11 18:11 ` Armin Kuster
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=3C15BB05.7070702@elsoft.ch \
--to=d.mueller@elsoft$(echo .)ch \
--cc=felix@allot$(echo .)com \
--cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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