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:
parent
c0a8b198d1
commit
96f7782627
@ -341,8 +341,24 @@ brgphy_service(sc, mii, cmd)
|
||||
/* 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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user