From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] UEC PHY: Speed up initial PHY neg.
Date: Sun, 12 Sep 2010 21:18:48 -0700 [thread overview]
Message-ID: <4C8DA628.3080708@gmail.com> (raw)
In-Reply-To: <1281451009-26015-1-git-send-email-Joakim.Tjernlund@transmode.se>
Hi Jocke,
On 8/10/2010 7:36 AM, Joakim Tjernlund wrote:
> Instead of always performing an autoneg, check if the PHY
> already has a link and if it matches one of the requested
> modes. Initially only 100MbFD is optimized this way.
>
> Signed-off-by: Joakim Tjernlund<Joakim.Tjernlund@transmode.se>
> ---
> drivers/qe/uec_phy.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/qe/uec_phy.c b/drivers/qe/uec_phy.c
> index 3baffe4..5237960 100644
> --- a/drivers/qe/uec_phy.c
> +++ b/drivers/qe/uec_phy.c
> @@ -351,6 +351,15 @@ static int marvell_config_aneg (struct uec_mii_info *mii_info)
> static int genmii_config_aneg (struct uec_mii_info *mii_info)
> {
> if (mii_info->autoneg) {
> + /* Speed up the common case, if link is already up, speed and
> + duplex match, skip auto neg as it already matches */
> + if (!genmii_read_status(mii_info)&& mii_info->link)
> + if (mii_info->duplex == DUPLEX_FULL&&
> + mii_info->speed == SPEED_100)
> + if (mii_info->advertising&
> + ADVERTISED_100baseT_Full)
> + return 0;
> +
> config_genmii_advert (mii_info);
> genmii_restart_aneg (mii_info);
> } else
Applied to net/next
regards,
Ben
prev parent reply other threads:[~2010-09-13 4:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-10 14:36 [U-Boot] [PATCH] UEC PHY: Speed up initial PHY neg Joakim Tjernlund
2010-08-10 20:23 ` Mike Frysinger
2010-08-11 6:20 ` Joakim Tjernlund
2010-08-12 12:58 ` Detlev Zundel
2010-08-12 14:09 ` Joakim Tjernlund
2010-08-13 8:20 ` Detlev Zundel
2010-08-13 13:18 ` Joakim Tjernlund
2010-08-23 7:08 ` Ben Warren
2010-08-23 7:53 ` Joakim Tjernlund
2010-08-23 14:12 ` Ben Warren
2010-08-23 14:53 ` Joakim Tjernlund
2010-08-23 15:19 ` [U-Boot] Start/stop of network devices (was: Re: [PATCH] UEC PHY: Speed up initial PHY neg.) Detlev Zundel
2010-08-24 18:35 ` Joakim Tjernlund
2010-09-13 4:18 ` Ben Warren [this message]
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=4C8DA628.3080708@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/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