Move the DC_SETBIT to the attach function.
Reviewed by: phk
This commit is contained in:
parent
82db7fddb8
commit
1be933f329
@ -1557,9 +1557,6 @@ dc_setcfg(sc, media)
|
||||
}
|
||||
}
|
||||
|
||||
if (DC_IS_ADMTEK(sc))
|
||||
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
|
||||
|
||||
if ((media & IFM_GMASK) == IFM_FDX) {
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_FULLDUPLEX);
|
||||
if (sc->dc_pmode == DC_PMODE_SYM && DC_IS_PNIC(sc))
|
||||
@ -2245,6 +2242,13 @@ dc_attach(dev)
|
||||
DELAY(10);
|
||||
}
|
||||
|
||||
if (DC_IS_ADMTEK(sc)) {
|
||||
/*
|
||||
* Set automatic TX underrun recovery for the ADMtek chips
|
||||
*/
|
||||
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
|
||||
}
|
||||
|
||||
/*
|
||||
* Tell the upper layer(s) we support long frames.
|
||||
*/
|
||||
|
@ -1557,9 +1557,6 @@ dc_setcfg(sc, media)
|
||||
}
|
||||
}
|
||||
|
||||
if (DC_IS_ADMTEK(sc))
|
||||
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
|
||||
|
||||
if ((media & IFM_GMASK) == IFM_FDX) {
|
||||
DC_SETBIT(sc, DC_NETCFG, DC_NETCFG_FULLDUPLEX);
|
||||
if (sc->dc_pmode == DC_PMODE_SYM && DC_IS_PNIC(sc))
|
||||
@ -2245,6 +2242,13 @@ dc_attach(dev)
|
||||
DELAY(10);
|
||||
}
|
||||
|
||||
if (DC_IS_ADMTEK(sc)) {
|
||||
/*
|
||||
* Set automatic TX underrun recovery for the ADMtek chips
|
||||
*/
|
||||
DC_SETBIT(sc, DC_AL_CR, DC_AL_CR_ATUR);
|
||||
}
|
||||
|
||||
/*
|
||||
* Tell the upper layer(s) we support long frames.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user