Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Fix a bug that atphy doesn't set the capability ...
details: https://anonhg.NetBSD.org/src/rev/e3f74c04d1c9
branches: trunk
changeset: 796749:e3f74c04d1c9
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Jun 16 12:36:41 2014 +0000
description:
Fix a bug that atphy doesn't set the capability of pause function correctly.
This bug was added in "mii.h" rev. 1.17.
diffstat:
sys/dev/mii/atphy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2f6b12ed78fd -r e3f74c04d1c9 sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c Mon Jun 16 12:28:10 2014 +0000
+++ b/sys/dev/mii/atphy.c Mon Jun 16 12:36:41 2014 +0000
@@ -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 @@
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 |
Home |
Main Index |
Thread Index |
Old Index