git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed3c09
)
cmd: mii: don't check address for 'device' subcommand
author
Hector Palacios
<hector.palacios@digi.com>
Fri, 17 Aug 2018 11:06:40 +0000
(13:06 +0200)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Wed, 24 Oct 2018 19:45:36 +0000
(14:45 -0500)
All mii operations require a valid PHY address except the 'device'
command, which expects the PHY name rather than the address.
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
cmd/mii.c
patch
|
blob
|
history
diff --git
a/cmd/mii.c
b/cmd/mii.c
index
ce7b393
..
c0c42a8
100644
(file)
--- a/
cmd/mii.c
+++ b/
cmd/mii.c
@@
-313,7
+313,7
@@
static int do_mii(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
mask = simple_strtoul(argv[5], NULL, 16);
}
- if (addrhi > 31) {
+ if (addrhi > 31
&& strncmp(op, "de", 2)
) {
printf("Incorrect PHY address. Range should be 0-31\n");
return CMD_RET_USAGE;
}