[PATCH 30/30] leon, greth: let Gbit full duplex override half
Daniel Hellstrom
daniel at gaisler.com
Thu Apr 13 19:31:39 UTC 2017
---
c/src/lib/libbsp/sparc/shared/net/greth.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/c/src/lib/libbsp/sparc/shared/net/greth.c b/c/src/lib/libbsp/sparc/shared/net/greth.c
index 9af2de2..bb33309 100644
--- a/c/src/lib/libbsp/sparc/shared/net/greth.c
+++ b/c/src/lib/libbsp/sparc/shared/net/greth.c
@@ -447,16 +447,16 @@ greth_initialize_hardware (struct greth_softc *sc)
if ((phystatus >> 8) & 1) {
sc->phydev.extadv = read_mii(sc, phyaddr, 9);
sc->phydev.extpart = read_mii(sc, phyaddr, 10);
- if ( (sc->phydev.extadv & GRETH_MII_EXTADV_1000FD) &&
- (sc->phydev.extpart & GRETH_MII_EXTPRT_1000FD)) {
- sc->gb = 1;
- sc->fd = 1;
- }
if ( (sc->phydev.extadv & GRETH_MII_EXTADV_1000HD) &&
(sc->phydev.extpart & GRETH_MII_EXTPRT_1000HD)) {
sc->gb = 1;
sc->fd = 0;
}
+ if ( (sc->phydev.extadv & GRETH_MII_EXTADV_1000FD) &&
+ (sc->phydev.extpart & GRETH_MII_EXTPRT_1000FD)) {
+ sc->gb = 1;
+ sc->fd = 1;
+ }
}
if ((sc->gb == 0) || ((sc->gb == 1) && (sc->gbit_mac == 0))) {
if ( (sc->phydev.adv & GRETH_MII_100TXFD) &&
--
2.7.4
More information about the devel
mailing list