mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct a bug in r213893; within a PHY driver MIIF_PHYPRIVn should be used
instead of MIIF_MACPRIVn. This didn't make a functional difference though.
This commit is contained in:
parent
13a6cf24ac
commit
f5a1822131
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ e1000phy_reset(struct mii_softc *sc)
|
|||
reg &= ~E1000_SCR_MODE_MASK;
|
||||
reg |= E1000_SCR_MODE_1000BX;
|
||||
PHY_WRITE(sc, E1000_SCR, reg);
|
||||
if ((sc->mii_flags & MIIF_MACPRIV0) != 0) {
|
||||
if ((sc->mii_flags & MIIF_PHYPRIV0) != 0) {
|
||||
/* Set SIGDET polarity low for SFP module. */
|
||||
PHY_WRITE(sc, E1000_EADR, 1);
|
||||
reg = PHY_READ(sc, E1000_SCR);
|
||||
|
|
|
|||
Loading…
Reference in a new issue