]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC: r213364
authormarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Oct 2010 13:39:19 +0000 (13:39 +0000)
committermarius <marius@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 24 Oct 2010 13:39:19 +0000 (13:39 +0000)
commit1062bf288c1424e6980991a2206c288b42143e16
tree98e9d3bbff9188bbde833684b2271e89ef2e55eb
parentc03f0ba66fbdacb2235b2f7f77e1963b97340a03
MFC: r213364

- In the spirit of previous simplifications factor out the checks for a
  different PHY instance being selected and isolation out into the wrappers
  around the service methods rather than duplicating them over and over
  again (besides, a PHY driver shouldn't need to care about which instance
  it actually is).
- Centralize the check for the need to isolate a non-zero PHY instance not
  supporting isolation in mii_mediachg() and just ignore it rather than
  panicing, which should sufficient given that a) things are likely to
  just work anyway if one doesn't plug in more than one port at a time and
  b) refusing to attach in this case just leaves us in a unknown but most
  likely also not exactly correct configuration (besides several drivers
  setting MIIF_NOISOLATE didn't care about these anyway, probably due to
  setting this flag for no real reason).
- Minor fixes like removing unnecessary setting of sc->mii_anegticks,
  using sc->mii_anegticks instead of hardcoded values etc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@214266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
34 files changed:
sys/dev/dc/dcphy.c
sys/dev/dc/pnphy.c
sys/dev/mii/acphy.c
sys/dev/mii/amphy.c
sys/dev/mii/atphy.c
sys/dev/mii/axphy.c
sys/dev/mii/bmtphy.c
sys/dev/mii/brgphy.c
sys/dev/mii/ciphy.c
sys/dev/mii/e1000phy.c
sys/dev/mii/exphy.c
sys/dev/mii/gentbi.c
sys/dev/mii/icsphy.c
sys/dev/mii/inphy.c
sys/dev/mii/ip1000phy.c
sys/dev/mii/jmphy.c
sys/dev/mii/lxtphy.c
sys/dev/mii/mii.c
sys/dev/mii/mlphy.c
sys/dev/mii/nsgphy.c
sys/dev/mii/nsphy.c
sys/dev/mii/nsphyter.c
sys/dev/mii/pnaphy.c
sys/dev/mii/qsphy.c
sys/dev/mii/rgephy.c
sys/dev/mii/rlphy.c
sys/dev/mii/rlswitch.c
sys/dev/mii/ruephy.c
sys/dev/mii/smcphy.c
sys/dev/mii/tdkphy.c
sys/dev/mii/tlphy.c
sys/dev/mii/truephy.c
sys/dev/mii/ukphy.c
sys/dev/mii/xmphy.c