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/7a4f1bab710d
branches: trunk
changeset: 848931:7a4f1bab710d
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 7f928c1be57e -r 7a4f1bab710d 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