If this is a Davicom DM9102A and we're enabling the homePNA link, force
dc_link to 1 and don't activate the tick routine. Without this, dc_start() always thinks the link is down and never transmits in homePNA mode.
This commit is contained in:
parent
8727af6e0f
commit
1794dd5857
@ -2765,10 +2765,15 @@ static void dc_init(xsc)
|
||||
|
||||
(void)splx(s);
|
||||
|
||||
if (sc->dc_flags & DC_21143_NWAY)
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz/10);
|
||||
else
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz);
|
||||
/* Don't start the ticker if this is a homePNA link. */
|
||||
if (IFM_SUBTYPE(mii->mii_media.ifm_media) == IFM_homePNA)
|
||||
sc->dc_link = 1;
|
||||
else {
|
||||
if (sc->dc_flags & DC_21143_NWAY)
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz/10);
|
||||
else
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz);
|
||||
}
|
||||
|
||||
#ifdef __alpha__
|
||||
if(sc->dc_srm_media) {
|
||||
|
@ -2765,10 +2765,15 @@ static void dc_init(xsc)
|
||||
|
||||
(void)splx(s);
|
||||
|
||||
if (sc->dc_flags & DC_21143_NWAY)
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz/10);
|
||||
else
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz);
|
||||
/* Don't start the ticker if this is a homePNA link. */
|
||||
if (IFM_SUBTYPE(mii->mii_media.ifm_media) == IFM_homePNA)
|
||||
sc->dc_link = 1;
|
||||
else {
|
||||
if (sc->dc_flags & DC_21143_NWAY)
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz/10);
|
||||
else
|
||||
sc->dc_stat_ch = timeout(dc_tick, sc, hz);
|
||||
}
|
||||
|
||||
#ifdef __alpha__
|
||||
if(sc->dc_srm_media) {
|
||||
|
Loading…
Reference in New Issue
Block a user