mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
committed by
Joe Hershberger
parent
1ed3c0954b
commit
fb265a74cf
@@ -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);
|
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");
|
printf("Incorrect PHY address. Range should be 0-31\n");
|
||||||
return CMD_RET_USAGE;
|
return CMD_RET_USAGE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user