From c1ff8fd19a6e8ea9e2af418b6c8bc94ac27a9a7f Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Mon, 18 Oct 2010 08:36:03 +0000 Subject: [PATCH] Revert r213867; while this driver really doesn't use any of the generic subroutines, at least mii_capabilities is used within itself. --- sys/dev/mii/brgphy.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/mii/brgphy.c b/sys/dev/mii/brgphy.c index cf88d200f5f..9f915df1b8f 100644 --- a/sys/dev/mii/brgphy.c +++ b/sys/dev/mii/brgphy.c @@ -280,6 +280,10 @@ brgphy_attach(device_t dev) brgphy_reset(sc); + /* Read the PHY's capabilities. */ + sc->mii_capabilities = PHY_READ(sc, MII_BMSR) & ma->mii_capmask; + if (sc->mii_capabilities & BMSR_EXTSTAT) + sc->mii_extcapabilities = PHY_READ(sc, MII_EXTSR); device_printf(dev, " "); #define ADD(m, c) ifmedia_add(&mii->mii_media, (m), (c), NULL) -- 2.45.2