mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laurent <laurent@gobio2.net>
To: linux-kernel@vger.kernel.org
Cc: webvenza@libero.it
Subject: Re: Problem with SiS900 - Unknown PHY
Date: Thu, 26 Aug 2004 22:47:28 +0200	[thread overview]
Message-ID: <1093553248.5718.17.camel@caribou.gobio2.net> (raw)
In-Reply-To: <1093383367.11744.0.camel@caribou.gobio2.net>

Hi...

Because I was  a bit surprise that my problem was just with one easy
line in the driver, I did more investigations about this problem. 
With the two versions of the driver, it's the same PHY component which
is used by the driver. But, if the PHY type is marked as UNKNOWN, 
the driver send this command to it :

(from drivers/net/sis900 in sis900_default_phy() function)

mdio_write(net_dev, phy->phy_addr, MII_CONTROL,
				status | MII_CNTL_AUTO |MII_CNTL_ISOLATE);



According to the PHY documentation (which can be found at the following
page : http://www.national.com/pf/DP/DP83847.html), it sets the PHY in
auto-negotiation mode (which is quite normal) and in Isolate mode (which
I don't understand why) :

"When in the MII isolate mode, the DP83847 does not respond to packet
data present at TXD[3:0], TX_EN, and TX_ER inputs and presents a high
impedance on the TX_CLK, RX_CLK, RX_DV, RX_ER, RXD[3:0], COL, and CRS
outputs. The DP83847 will continue to respond to all management
transactions.

While in Isolate mode the TD+- outputs will not transmit packet data but
will continue to source 100BASE-TX scrambled idles or 10BASE-T normal
link pulses" 

Could someone give me a hint about this setting ?

Laurent

Le mardi 24 août 2004 à 23:36 +0200, Laurent a écrit :
> Some time ago, I sent on this list a mail about my strange problem with
> my SiS900 network card (Subject was Sluggish performances with FreeBSD)
> 
> To sum up, when my card is in 100Mb mode, I have poor throughput but in
> 10Mb, all seems normal.
> 
> After some tests, it seems these results was due to a misdetection of
> the PHY device. mii-tool reports :
>  product info: vendor 08:00:17, model 3 rev 0
> 
> and after some search on the web, I found it's a NS DP83847 which is
> very similar
> 
> Here is the patch :
> 
> --- linux/drivers/net/sis900.c.old      2004-08-24 20:51:43.865086208
> +0200
> +++ linux/drivers/net/sis900.c  2004-08-24 20:21:48.000000000 +0200
> @@ -124,6 +124,7 @@
>         { "AMD 79C901 HomePNA PHY",             0x0000, 0x6B90, HOME},
>         { "ICS LAN PHY",                        0x0015, 0xF440, LAN },
>         { "NS 83851 PHY",                       0x2000, 0x5C20, MIX },
> +       { "NS 83847 PHY",                       0x2000, 0x5C30, MIX },
>         { "Realtek RTL8201 PHY",                0x0000, 0x8200, LAN },
>         { "VIA 6103 PHY",                       0x0101, 0x8f20, LAN },
>         {NULL,},
> 
> Hope it can help some people
> 
> Laurent Goujon
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/


      reply	other threads:[~2004-08-26 20:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24 21:36 Laurent
2004-08-26 20:47 ` Laurent [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=1093553248.5718.17.camel@caribou.gobio2.net \
    --to=laurent@gobio2.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=webvenza@libero.it \
    /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

all inboxes | Powered by JetHome®