From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] net: tsec - handle user interrupt while waiting for PHY auto negotiation to complete
Date: Tue, 25 Aug 2009 13:34:23 -0700 [thread overview]
Message-ID: <4A944ACF.5010009@gmail.com> (raw)
In-Reply-To: <20090824143226.e563ae9e.kim.phillips@freescale.com>
Kim Phillips wrote:
> if you don't have firmware installed for the PHY to come to life, this
> wait can be painful - let's give the option to avoid it if we want.
>
> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
> ---
> drivers/net/tsec.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
> index 9c9fd37..5c3d261 100644
> --- a/drivers/net/tsec.c
> +++ b/drivers/net/tsec.c
> @@ -17,6 +17,7 @@
> #include <net.h>
> #include <command.h>
> #include <tsec.h>
> +#include <asm/errno.h>
>
> #include "miiphy.h"
>
> @@ -380,6 +381,12 @@ uint mii_parse_sr(uint mii_reg, struct tsec_private * priv)
> return 0;
> }
>
> + if (ctrlc()) {
> + puts("user interrupt!\n");
> + priv->link = 0;
> + return -EINTR;
> + }
> +
> if ((i++ % 1000) == 0) {
> putc('.');
> }
>
Applied to net/next
regards,
Ben
prev parent reply other threads:[~2009-08-25 20:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 19:32 [U-Boot] [PATCH] net: tsec - handle user interrupt while waiting for PHY auto negotiation to complete Kim Phillips
2009-08-24 22:48 ` Andy Fleming
2009-08-24 23:10 ` Scott Wood
2009-08-25 3:09 ` Peter Tyser
2009-08-25 20:34 ` 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=4A944ACF.5010009@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