It seems EEE support is not only on 8211F but on 8211D and newer.
This commit is contained in:
parent
d020c71c0c
commit
4753f9ff69
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rgephy.c,v 1.48 2019/02/24 17:22:21 christos Exp $ */
|
||||
/* $NetBSD: rgephy.c,v 1.49 2019/02/25 06:59:37 msaitoh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.48 2019/02/24 17:22:21 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.49 2019/02/25 06:59:37 msaitoh Exp $");
|
||||
|
||||
|
||||
/*
|
||||
|
@ -696,7 +696,7 @@ rgephy_reset(struct mii_softc *sc)
|
|||
/* NWay enable and Restart NWay */
|
||||
PHY_WRITE(sc, MII_BMCR, BMCR_RESET | BMCR_AUTOEN | BMCR_STARTNEG);
|
||||
|
||||
if (sc->mii_mpd_rev == RGEPHY_8211F) {
|
||||
if (sc->mii_mpd_rev >= RGEPHY_8211D) {
|
||||
/* RTL8211F */
|
||||
delay(10000);
|
||||
/* disable EEE */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rgephyreg.h,v 1.11 2018/06/27 07:51:36 msaitoh Exp $ */
|
||||
/* $NetBSD: rgephyreg.h,v 1.12 2019/02/25 06:59:37 msaitoh Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003
|
||||
|
@ -39,6 +39,7 @@
|
|||
|
||||
#define RGEPHY_8211B 2
|
||||
#define RGEPHY_8211C 3
|
||||
#define RGEPHY_8211D 4
|
||||
#define RGEPHY_8211E 5
|
||||
#define RGEPHY_8211F 6
|
||||
|
||||
|
|
Loading…
Reference in New Issue