Fix a regression introduced in r213893. FPGA version requires PHY

probing so allow PHY probing on all possible addresses.
This commit is contained in:
Pyun YongHyeon 2010-12-18 23:21:16 +00:00
parent 79357531c8
commit f25c5972da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216548

View File

@ -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;