diff options
author | Hector Palacios <hector.palacios@digi.com> | 2018-08-17 13:06:40 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2018-10-24 14:45:36 -0500 |
commit | fb265a74cfed2c655e02390d4fb13ffcfece2101 (patch) | |
tree | 7a4ded0a00fa9901d8f6f054616e350f24872f60 | |
parent | 1ed3c0954bd160dafcad8847a51c3ddd5f992f51 (diff) | |
download | u-boot-fb265a74cfed2c655e02390d4fb13ffcfece2101.tar.gz u-boot-fb265a74cfed2c655e02390d4fb13ffcfece2101.tar.bz2 u-boot-fb265a74cfed2c655e02390d4fb13ffcfece2101.zip |
cmd: mii: don't check address for 'device' subcommand
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>
-rw-r--r-- | cmd/mii.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |