Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii determine FDX flow control abilities
details: https://anonhg.NetBSD.org/src/rev/b875ce991585
branches: trunk
changeset: 744857:b875ce991585
user: nisimura <nisimura%NetBSD.org@localhost>
date: Fri Feb 14 14:14:45 2020 +0000
description:
determine FDX flow control abilities
diffstat:
sys/dev/mii/dmphy.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 3c79c46d1483 -r b875ce991585 sys/dev/mii/dmphy.c
--- a/sys/dev/mii/dmphy.c Fri Feb 14 13:20:48 2020 +0000
+++ b/sys/dev/mii/dmphy.c Fri Feb 14 14:14:45 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dmphy.c,v 1.44 2019/11/27 10:19:20 msaitoh Exp $ */
+/* $NetBSD: dmphy.c,v 1.45 2020/02/14 14:14:45 nisimura Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dmphy.c,v 1.44 2019/11/27 10:19:20 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dmphy.c,v 1.45 2020/02/14 14:14:45 nisimura Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -240,6 +240,8 @@
mii->mii_media_active |= IFM_10_T | IFM_HDX;
else
mii->mii_media_active |= IFM_NONE;
+ if (mii->mii_media_active & IFM_FDX)
+ mii->mii_media_active |= mii_phy_flowstatus(phy);
} else
mii->mii_media_active = ife->ifm_media;
}
Home |
Main Index |
Thread Index |
Old Index