Message ID | 48E2175F.1000306@linux.net.cn |
---|---|
State | RFC, archived |
Delegated to: | Jeff Garzik |
Headers | show |
Wang Jian wrote: > I have an idea that if the phy is in sleep mode, flip flop energy detect > mode to > leave sleep mode. This is done every 6 seconds, not so intrusive. I will > try it > later. > No success so far. MII_PDOWN then MII_RESET no success either. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index 4aa5479..77a9e18 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -312,7 +312,12 @@ static int marvell_read_status(struct phy_device *phydev) return err; if (AUTONEG_ENABLE == phydev->autoneg) { + status = phy_read(phydev, MII_BMCR); + printk(KERN_ERR "MII_BMCR=%08x, ", status); + status = phy_read(phydev, MII_BMSR); + printk("MII_BMSR=%08x, ", status); status = phy_read(phydev, MII_M1011_PHY_STATUS); + printk("MII_M1011_PHY_STATUS=%08x\n", status); if (status < 0) return status;