]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- In rlphy_service() for the MII_TICK case don't bother to check whether
authorMarius Strobl <marius@FreeBSD.org>
Tue, 28 Nov 2006 01:14:09 +0000 (01:14 +0000)
committerMarius Strobl <marius@FreeBSD.org>
Tue, 28 Nov 2006 01:14:09 +0000 (01:14 +0000)
commit38ee137b264795f344536ec2224d4925635f0a04
tree483b7dfb2caa2464cf87de78c565b6fbc48468aa
parentf8f3badf74fb48d65bbc7a401954985ed3f14f3a
- In rlphy_service() for the MII_TICK case don't bother to check whether
  the currently selected media is of type IFM_AUTO as auto-negotiation
  doesn't need to be kicked anyway.
- In rlphy_status() just use if_dname instead of determining the name
  of the parent NIC via device_get_name(device_get_parent(sc->mii_dev)).
- Use mii_phy_add_media() instead of mii_add_media() so the latter can
  be eventually retired.
- Take advantage of mii_phy_setmedia().
- Fix some whitespace nits and remove commented out code that just can't
  be used with RealTek PHYs.

MFC after: 2 weeks
sys/dev/mii/rlphy.c