diff options
author | yongari <yongari@FreeBSD.org> | 2010-12-18 23:21:16 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2010-12-18 23:21:16 +0000 |
commit | fdbb86802d838544394fe3a9becb931e20ef59c7 (patch) | |
tree | 9cb6d6dd1055e3aeb47286efc262d4210ad16576 /sys/dev/jme/if_jme.c | |
parent | 84941f8297970e3618d7e98cdbef942031b9a596 (diff) | |
download | FreeBSD-src-fdbb86802d838544394fe3a9becb931e20ef59c7.zip FreeBSD-src-fdbb86802d838544394fe3a9becb931e20ef59c7.tar.gz |
Fix a regression introduced in r213893. FPGA version requires PHY
probing so allow PHY probing on all possible addresses.
Diffstat (limited to 'sys/dev/jme/if_jme.c')
-rw-r--r-- | sys/dev/jme/if_jme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/jme/if_jme.c b/sys/dev/jme/if_jme.c index 70cbf41..1172705 100644 --- a/sys/dev/jme/if_jme.c +++ b/sys/dev/jme/if_jme.c @@ -730,8 +730,9 @@ jme_attach(device_t dev) /* Set up MII bus. */ error = mii_attach(dev, &sc->jme_miibus, ifp, jme_mediachange, - jme_mediastatus, BMSR_DEFCAPMASK, sc->jme_phyaddr, MII_OFFSET_ANY, - MIIF_DOPAUSE); + jme_mediastatus, BMSR_DEFCAPMASK, + sc->jme_flags & JME_FLAG_FPGA ? MII_PHY_ANY : sc->jme_phyaddr, + MII_OFFSET_ANY, MIIF_DOPAUSE); if (error != 0) { device_printf(dev, "attaching PHYs failed\n"); goto fail; |