mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Close PR 20438. Make fix for preserving LED settings conditional on
presence Intel 21143 chip.
This commit is contained in:
parent
532c92a865
commit
bf64541762
2 changed files with 14 additions and 6 deletions
|
|
@ -1223,10 +1223,14 @@ static void dc_setcfg(sc, media)
|
|||
if (sc->dc_pmode == DC_PMODE_MII) {
|
||||
int watchdogreg;
|
||||
|
||||
if (DC_IS_INTEL(sc)) {
|
||||
/* there's a write enable bit here that reads as 1 */
|
||||
watchdogreg = CSR_READ_4(sc, DC_WATCHDOG);
|
||||
watchdogreg &= ~DC_WDOG_CTLWREN;
|
||||
watchdogreg |= DC_WDOG_JABBERDIS;
|
||||
watchdogreg = CSR_READ_4(sc, DC_WATCHDOG);
|
||||
watchdogreg &= ~DC_WDOG_CTLWREN;
|
||||
watchdogreg |= DC_WDOG_JABBERDIS;
|
||||
} else {
|
||||
DC_SETBIT(sc, DC_WATCHDOG, DC_WDOG_JABBERDIS);
|
||||
}
|
||||
DC_CLRBIT(sc, DC_NETCFG, (DC_NETCFG_PCS|
|
||||
DC_NETCFG_PORTSEL|DC_NETCFG_SCRAMBLER));
|
||||
if (sc->dc_type == DC_TYPE_98713)
|
||||
|
|
|
|||
|
|
@ -1223,10 +1223,14 @@ static void dc_setcfg(sc, media)
|
|||
if (sc->dc_pmode == DC_PMODE_MII) {
|
||||
int watchdogreg;
|
||||
|
||||
if (DC_IS_INTEL(sc)) {
|
||||
/* there's a write enable bit here that reads as 1 */
|
||||
watchdogreg = CSR_READ_4(sc, DC_WATCHDOG);
|
||||
watchdogreg &= ~DC_WDOG_CTLWREN;
|
||||
watchdogreg |= DC_WDOG_JABBERDIS;
|
||||
watchdogreg = CSR_READ_4(sc, DC_WATCHDOG);
|
||||
watchdogreg &= ~DC_WDOG_CTLWREN;
|
||||
watchdogreg |= DC_WDOG_JABBERDIS;
|
||||
} else {
|
||||
DC_SETBIT(sc, DC_WATCHDOG, DC_WDOG_JABBERDIS);
|
||||
}
|
||||
DC_CLRBIT(sc, DC_NETCFG, (DC_NETCFG_PCS|
|
||||
DC_NETCFG_PORTSEL|DC_NETCFG_SCRAMBLER));
|
||||
if (sc->dc_type == DC_TYPE_98713)
|
||||
|
|
|
|||
Loading…
Reference in a new issue