cmd: mii: don't check address for 'device' subcommand
PATCH 1/1 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 <[email protected]>
--- cmd/mii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
cmd/mii.c +1 -1
@@ -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 ; }
PATCH 1/1 cmd: mii: don't check address for 'device' subcommand
Quoted 5 lines · Hector Palacios
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 <[email protected]>
Acked-by Joe Hershberger <[email protected]>
Hi Hector,
https://patchwork.ozlabs.org/patch/958780/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git
Thanks!
-Joe