From owner-freebsd-stable Sat Jun 2 12:43: 0 2001 Delivered-To: freebsd-stable@freebsd.org Received: from mail.urx.com (mail.urx.com [63.170.19.36]) by hub.freebsd.org (Postfix) with ESMTP id A5DB837B422; Sat, 2 Jun 2001 12:42:55 -0700 (PDT) (envelope-from kstewart@urx.com) Received: from urx.com [206.159.132.160] by mail.urx.com with ESMTP (SMTPD32-6.06) id A1B611CA058E; Sat, 02 Jun 2001 12:42:46 -0700 Message-ID: <3B1941B6.3FFD2782@urx.com> Date: Sat, 02 Jun 2001 12:42:46 -0700 From: Kent Stewart Reply-To: kstewart@urx.com Organization: Dynacom X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Jonathan Lemon Cc: Wilko Bulte , Pete French , freebsd-stable@freebsd.org, jlemon@freebsd.org Subject: Re: Problem with xl driver (cvsup 2001-06-02) References: <20010602173041.A15232@f113.hadiko.de> <20010602185006.C7587@freebie.demon.nl> <3B193D2E.13A98AB3@urx.com> <20010602142800.G82158@prism.flugsvamp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jonathan Lemon wrote: > > On Sat, Jun 02, 2001 at 12:23:26PM -0700, Kent Stewart wrote: > > On the 3C509-TX, the only thing that works so far is commenting out the > > write to the PHY, which is the one of the changes that Lemon made for the > > Intel card. > > > > /* > > PHY_WRITE(sc, MII_NSPHY_PCR, reg); > > */ > > > > I deleted the or's to reg until only setting the led was left and then I > > backed it all out and commented the PHY_WRITE, which restored networking to > > the NIC. > > > > My system with a 3C509B-TX wasn't affected by the changes to mii/nsphy.c. > > This is fairly useful to know. The register definitions come from the > datasheet for the National part, so my guess is that the part used on > the 3C509 doesn't quite conform to the National specification. > > Please try the following patch. This should change things so that > the register is only touched for the fxp card; otherwise it is left > alone. With this patch, my 3C509-TX works like it used to. Kent > -- > Jonathan > > Index: nsphy.c > =================================================================== > RCS file: /ncvs/src/sys/dev/mii/nsphy.c,v > retrieving revision 1.8 > diff -u -r1.8 nsphy.c > --- nsphy.c 2001/03/16 14:17:02 1.8 > +++ nsphy.c 2001/06/02 19:28:34 > @@ -276,7 +276,9 @@ > */ > reg |= 0x0100 | 0x0400; > > - PHY_WRITE(sc, MII_NSPHY_PCR, reg); > + if (strcmp(device_get_name(device_get_parent(sc->mii_dev)), > + "fxp") == 0) > + PHY_WRITE(sc, MII_NSPHY_PCR, reg); > > switch (IFM_SUBTYPE(ife->ifm_media)) { > case IFM_AUTO: -- Kent Stewart Richland, WA mailto:kbstew99@hotmail.com http://kstewart.urx.com/kstewart/index.html FreeBSD News http://daily.daemonnews.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message