mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
net: tsec - handle user interrupt while waiting for PHY auto negotiation to complete
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> Acked-by: Andy Fleming <afleming@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
4fccb818e7
commit
0d071cdd78
1 changed files with 7 additions and 0 deletions
|
@ -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('.');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue