Subject: Re: chapeter II: serious problem with hme0
To: None <port-sparc64@netbsd.org>
From: Christopher SEKIYA <wileyc@rezrov.net>
List: port-sparc64
Date: 02/09/2003 12:23:36
On Sat, Feb 08, 2003 at 10:16:59PM -0500, Rafal Boni wrote:
> I'll second this -- my Ultra 5's hme *will not* establish link with a
> DLink 10/100 unmanaged switch no matter how I stood on my head
The attached one-liner, originally floated on port-sparc64 by thorpej many many
moons ago, fixes autonegotiation with hme. I've been using it for over
a year with a multitude of switches, autonegotiation works fine on all of them.
-- Chris
GPG key FEB9DE7F (91AF 4534 4529 4BCC 31A5 938E 023E EEFB FEB9 DE7F)
--- sys/dev/mii/mii_physubr.c.orig Tue May 14 05:01:57 2002
+++ sys/dev/mii/mii_physubr.c Sun Aug 11 20:53:44 2002
@@ -114,7 +114,7 @@
int bmcr, anar, gtcr;
if (IFM_SUBTYPE(ife->ifm_media) == IFM_AUTO) {
- if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0)
+// if ((PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN) == 0)
(void) mii_phy_auto(sc, 1);
return;
}