Something I missed in my tree.

If the media changes, poke the DSP on the 5401/5411 Broadcom PHY's.

Obtained from:	NetBSD
This commit is contained in:
Paul Saab 2003-05-04 02:03:20 +00:00
parent 8c78720918
commit 20430a6b04
1 changed files with 18 additions and 2 deletions

View File

@ -341,8 +341,24 @@ setit:
/* Update the media status. */
brgphy_status(sc);
/* Callback if something changed. */
mii_phy_update(sc, cmd);
/*
* Callback if something changed. Note that we need to poke
* the DSP on the Broadcom PHYs if the media changes.
*
*/
if (sc->mii_media_active != mii->mii_media_active ||
sc->mii_media_status != mii->mii_media_status ||
cmd == MII_MEDIACHG) {
mii_phy_update(sc, cmd);
switch (brgphy_mii_model) {
case MII_MODEL_xxBROADCOM_BCM5401:
bcm5401_load_dspcode(sc);
break;
case MII_MODEL_xxBROADCOM_BCM5411:
bcm5411_load_dspcode(sc);
break;
}
}
return (0);
}