View | Details | Raw Unified | Return to bug 252165
Collapse All | Expand All

(-)b/sys/dev/mii/mii.c (-3 lines)
Lines 615-623 mii_pollstat(struct mii_data *mii) Link Here
615
	struct mii_softc *child;
615
	struct mii_softc *child;
616
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
616
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
617
617
618
	mii->mii_media_status = 0;
619
	mii->mii_media_active = IFM_NONE;
620
621
	LIST_FOREACH(child, &mii->mii_phys, mii_list) {
618
	LIST_FOREACH(child, &mii->mii_phys, mii_list) {
622
		/*
619
		/*
623
		 * If we're not polling this PHY instance, just skip it.
620
		 * If we're not polling this PHY instance, just skip it.
(-)b/sys/dev/mii/rgephy.c (-5 / +7 lines)
Lines 312-325 static void Link Here
312
rgephy_status(struct mii_softc *sc)
312
rgephy_status(struct mii_softc *sc)
313
{
313
{
314
	struct mii_data *mii = sc->mii_pdata;
314
	struct mii_data *mii = sc->mii_pdata;
315
	int linkup;
315
	int bmsr, bmcr;
316
	int bmsr, bmcr;
316
	uint16_t ssr;
317
	uint16_t ssr;
317
318
318
	mii->mii_media_status = IFM_AVALID;
319
	linkup = rgephy_linkup(sc);
319
	mii->mii_media_active = IFM_ETHER;
320
320
321
	if (rgephy_linkup(sc) != 0)
321
	if (linkup != 0)
322
		mii->mii_media_status |= IFM_ACTIVE;
322
		mii->mii_media_status = IFM_AVALID | IFM_ACTIVE;
323
	else
324
		mii->mii_media_status = IFM_AVALID;
325
	mii->mii_media_active = IFM_ETHER;
323
326
324
	bmsr = PHY_READ(sc, RGEPHY_MII_BMSR);
327
	bmsr = PHY_READ(sc, RGEPHY_MII_BMSR);
325
	bmcr = PHY_READ(sc, RGEPHY_MII_BMCR);
328
	bmcr = PHY_READ(sc, RGEPHY_MII_BMCR);
326
- 

Return to bug 252165