mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Revert r213867; while this driver really doesn't use any of the generic
subroutines, at least mii_capabilities is used within itself.
This commit is contained in:
parent
bc92b07848
commit
c1ff8fd19a
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue