Module Name: src
Committed By: msaitoh
Date: Mon Jun 16 12:36:41 UTC 2014
Modified Files:
src/sys/dev/mii: atphy.c
Log Message:
Fix a bug that atphy doesn't set the capability of pause function correctly.
This bug was added in "mii.h" rev. 1.17.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/mii/atphy.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/mii/atphy.c
diff -u src/sys/dev/mii/atphy.c:1.15 src/sys/dev/mii/atphy.c:1.16
--- src/sys/dev/mii/atphy.c:1.15 Sun Jun 16 06:29:08 2013
+++ src/sys/dev/mii/atphy.c Mon Jun 16 12:36:41 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: atphy.c,v 1.15 2013/06/16 06:29:08 msaitoh Exp $ */
+/* $NetBSD: atphy.c,v 1.16 2014/06/16 12:36:41 msaitoh Exp $ */
/* $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $ */
/*-
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.15 2013/06/16 06:29:08 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.16 2014/06/16 12:36:41 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -408,7 +408,7 @@ atphy_mii_phy_auto(struct mii_softc *sc)
sc->mii_ticks = 0;
anar = BMSR_MEDIA_TO_ANAR(sc->mii_capabilities) | ANAR_CSMA;
if (sc->mii_flags & MIIF_DOPAUSE)
- anar |= ANAR_X_PAUSE_TOWARDS;
+ anar |= ANAR_PAUSE_TOWARDS;
PHY_WRITE(sc, MII_ANAR, anar);
if (sc->mii_extcapabilities & (EXTSR_1000TFDX | EXTSR_1000THDX))
PHY_WRITE(sc, MII_100T2CR, GTCR_ADV_1000TFDX |