View | Details | Raw Unified | Return to bug 252165 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/mii/mii.c (-3 lines)
Lines 607-615 mii_pollstat(struct mii_data *mii) Link Here
607
	struct mii_softc *child;
607
	struct mii_softc *child;
608
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
608
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
609
609
610
	mii->mii_media_status = 0;
611
	mii->mii_media_active = IFM_NONE;
612
613
	LIST_FOREACH(child, &mii->mii_phys, mii_list) {
610
	LIST_FOREACH(child, &mii->mii_phys, mii_list) {
614
		/*
611
		/*
615
		 * If we're not polling this PHY instance, just skip it.
612
		 * If we're not polling this PHY instance, just skip it.
(-)b/sys/dev/mii/ukphy_subr.c (-4 / +4 lines)
Lines 62-73 ukphy_status(struct mii_softc *phy) Link Here
62
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
62
	struct ifmedia_entry *ife = mii->mii_media.ifm_cur;
63
	int bmsr, bmcr, anlpar, gtcr, gtsr;
63
	int bmsr, bmcr, anlpar, gtcr, gtsr;
64
64
65
	mii->mii_media_status = IFM_AVALID;
66
	mii->mii_media_active = IFM_ETHER;
67
68
	bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR);
65
	bmsr = PHY_READ(phy, MII_BMSR) | PHY_READ(phy, MII_BMSR);
69
	if (bmsr & BMSR_LINK)
66
	if (bmsr & BMSR_LINK)
70
		mii->mii_media_status |= IFM_ACTIVE;
67
		mii->mii_media_status = IF_AVALID | IFM_ACTIVE;
68
        else
69
                mii->mii_media_status = IF_AVALID;
70
        mii->mii_media_active = IFM_ETHER;
71
71
72
	bmcr = PHY_READ(phy, MII_BMCR);
72
	bmcr = PHY_READ(phy, MII_BMCR);
73
	if (bmcr & BMCR_ISO) {
73
	if (bmcr & BMCR_ISO) {

Return to bug 252165