* We need to call if_init() before trying to set the media.
* Accidently excluded the MII bus from being probed in r23019 - in fact, now all devices have to be probed. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23038 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4dc1122b30
commit
589e5418f1
@ -415,7 +415,7 @@ bus_generic_attach(device_t dev)
|
||||
MII_OUI(ma->mii_id1, ma->mii_id2), MII_MODEL(ma->mii_id2));
|
||||
} else
|
||||
device_set_driver(child, driver);
|
||||
} else if (child->driver != &miibus_driver)
|
||||
} else
|
||||
child->methods.probe(child);
|
||||
|
||||
if (child->driver != NULL) {
|
||||
|
@ -47,6 +47,8 @@ compat_open(const char *name, uint32 flags, void **cookie)
|
||||
return B_BUSY;
|
||||
}
|
||||
|
||||
ifp->if_init(ifp->if_softc);
|
||||
|
||||
ifp->if_flags &= ~IFF_UP;
|
||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||
|
||||
@ -57,8 +59,6 @@ compat_open(const char *name, uint32 flags, void **cookie)
|
||||
ifp->if_flags |= IFF_UP;
|
||||
ifp->if_ioctl(ifp, SIOCSIFFLAGS, NULL);
|
||||
|
||||
ifp->if_init(ifp->if_softc);
|
||||
|
||||
*cookie = ifp;
|
||||
return B_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user