RFC: performance monitor/oprofile support for e500

Eugene Surovegin ebs at ebshome.net
Sat Oct 30 13:29:08 EST 2004


On Fri, Oct 29, 2004 at 08:16:56PM -0500, Andy Fleming wrote:

[snip] 

+static int genmii_read_status(struct phy_mii_info *mii_info)
+{
+       u16 status;
+       int err;
+
+       /* Update the link, but return if there
+        * was an error */
+       err = genmii_update_link(mii_info);
+       if (err)
+               return err;
+
+       if (mii_info->autoneg) {
+               status = phy_read(mii_info, MII_LPA);

MII_LPA should be masked with MII_ADVERTISE here. 
E.g.
	status = phy_read(mii_info, MII_LPA) & phy_read(mii_info, MII_ADVERTISE);

--
Eugene



More information about the Linuxppc-embedded mailing list