Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Remove extra PHY read in brgphy_mii_phy_auto().
details: https://anonhg.NetBSD.org/src/rev/02b9d213aea4
branches: trunk
changeset: 995944:02b9d213aea4
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Fri Jan 11 07:14:57 2019 +0000
description:
Remove extra PHY read in brgphy_mii_phy_auto().
diffstat:
sys/dev/mii/brgphy.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 1557d28fdac6 -r 02b9d213aea4 sys/dev/mii/brgphy.c
--- a/sys/dev/mii/brgphy.c Fri Jan 11 06:14:39 2019 +0000
+++ b/sys/dev/mii/brgphy.c Fri Jan 11 07:14:57 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: brgphy.c,v 1.77 2019/01/08 03:14:51 msaitoh Exp $ */
+/* $NetBSD: brgphy.c,v 1.78 2019/01/11 07:14:57 msaitoh Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.77 2019/01/08 03:14:51 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: brgphy.c,v 1.78 2019/01/11 07:14:57 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -820,7 +820,6 @@
&& (sc->mii_mpd_model == MII_MODEL_BROADCOM_BCM5701))
ktcr |= GTCR_MAN_MS | GTCR_ADV_MS;
PHY_WRITE(sc, MII_100T2CR, ktcr);
- ktcr = PHY_READ(sc, MII_100T2CR);
}
PHY_WRITE(sc, MII_ANAR, anar);
Home |
Main Index |
Thread Index |
Old Index