[rtems commit] greth: prefer full duplex if available
Joel Sherrill
joel at rtems.org
Wed Jun 19 13:16:02 UTC 2013
Module: rtems
Branch: master
Commit: 1bdc6d1d5c820120681137295ef194079b012ec9
Changeset: http://git.rtems.org/rtems/commit/?id=1bdc6d1d5c820120681137295ef194079b012ec9
Author: Jiri Gaisler <jiri at gaisler.se>
Date: Sun Jun 16 15:28:20 2013 +0200
greth: prefer full duplex if available
---
c/src/libchip/network/greth.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/c/src/libchip/network/greth.c b/c/src/libchip/network/greth.c
index 54d55ed..2663e8d 100644
--- a/c/src/libchip/network/greth.c
+++ b/c/src/libchip/network/greth.c
@@ -344,7 +344,7 @@ greth_initialize_hardware (struct greth_softc *sc)
sc->gb = 1;
sc->fd = 1;
}
- if ( (sc->phydev.extadv & GRETH_MII_EXTADV_1000HD) &&
+ else if ( (sc->phydev.extadv & GRETH_MII_EXTADV_1000HD) &&
(sc->phydev.extpart & GRETH_MII_EXTPRT_1000HD)) {
sc->gb = 1;
sc->fd = 0;
@@ -356,12 +356,12 @@ greth_initialize_hardware (struct greth_softc *sc)
sc->sp = 1;
sc->fd = 1;
}
- if ( (sc->phydev.adv & GRETH_MII_100TXHD) &&
+ else if ( (sc->phydev.adv & GRETH_MII_100TXHD) &&
(sc->phydev.part & GRETH_MII_100TXHD)) {
sc->sp = 1;
sc->fd = 0;
}
- if ( (sc->phydev.adv & GRETH_MII_10FD) &&
+ else if ( (sc->phydev.adv & GRETH_MII_10FD) &&
(sc->phydev.part & GRETH_MII_10FD)) {
sc->fd = 1;
}
More information about the vc
mailing list