From 5d59362221fad1729c1a633a5b19cf967bad1219 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Wed, 3 Feb 2010 16:22:59 +0000 Subject: Enable the next page bit for IP1001, otherwise the PHY fails to re-establish 1000baseT link after downgrading to 10/100. Fixes problems for Andreas Bartelt with ipgphy at VT6130. From FreeBSD via Brad, ok naddy@ --- sys/dev/mii/ipgphy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/mii') diff --git a/sys/dev/mii/ipgphy.c b/sys/dev/mii/ipgphy.c index aa2bda16185..309a7651823 100644 --- a/sys/dev/mii/ipgphy.c +++ b/sys/dev/mii/ipgphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipgphy.c,v 1.12 2009/08/08 17:12:40 naddy Exp $ */ +/* $OpenBSD: ipgphy.c,v 1.13 2010/02/03 16:22:58 sthen Exp $ */ /*- * Copyright (c) 2006, Pyun YongHyeon @@ -353,8 +353,10 @@ ipgphy_mii_phy_auto(struct mii_softc *sc) { uint32_t reg = 0; - if (sc->mii_model == MII_MODEL_ICPLUS_IP1001) + if (sc->mii_model == MII_MODEL_ICPLUS_IP1001) { reg = PHY_READ(sc, IPGPHY_MII_ANAR); + reg |= IPGPHY_ANAR_NP; + } reg |= IPGPHY_ANAR_10T | IPGPHY_ANAR_10T_FDX | IPGPHY_ANAR_100TX | IPGPHY_ANAR_100TX_FDX; -- cgit v1.2.3