From: Eugene Surovegin <ebs@ebshome.net>
To: linuxppc-embedded@ozlabs.org
Subject: Re: RFC: performance monitor/oprofile support for e500
Date: Fri, 29 Oct 2004 20:29:08 -0700 [thread overview]
Message-ID: <20041030032908.GB29945@gate.ebshome.net> (raw)
In-Reply-To: <642F8D42-2A11-11D9-A860-000393C30512@freescale.com>
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
next prev parent reply other threads:[~2004-10-30 3:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-30 1:16 RFC: performance monitor/oprofile support for e500 Andy Fleming
2004-10-30 3:29 ` Eugene Surovegin [this message]
2004-11-01 5:43 ` Kumar Gala
2004-11-01 17:03 ` Andy Fleming
2004-11-01 17:27 ` Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041030032908.GB29945@gate.ebshome.net \
--to=ebs@ebshome.net \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox