- In rlphy_attach(), turn on BMCR_AUTOEN after mii_phy_reset(). This unbreaks
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 31 Oct 2005 09:20:05 +0000 (09:20 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 31 Oct 2005 09:20:05 +0000 (09:20 +0000)
commit69057b0de2be3677326c8b7bf82f0c1f0f43c8a4
treefed16ac85d1d7b9582cfd4040fab12b719c6b0ee
parent3d8ba483200cf300fffd2c00b78fbff62cd79cd0
- In rlphy_attach(), turn on BMCR_AUTOEN after mii_phy_reset().  This unbreaks
  auto-negotiation(*) before mii_mediachg() is called(in rl_init()).  Add
  comment on this change
- Staticize rlphy_{service, status}(), since they are only used in this file
- ANSIfy

(*)
The original broken auto-negotiation can easily be reproduced:
1) Comment out ifconfig_rl0 in /etc/rc.conf
2) Unplug wire from rl0
3) Restart DragonFly
4) Run `ifconfig rl0'
sys/dev/netif/mii_layer/rlphy.c