diff options
author | Tom Rini <trini@konsulko.com> | 2015-11-19 11:25:36 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-11-19 11:25:36 -0500 |
commit | aa7077fcee6cf00cde59bb9709ebd6205720f8bf (patch) | |
tree | 067a13ac5342287fbbc1429425b2e87f9f28106b /common/cmd_mii.c | |
parent | 4c60850792e003bcafd16c324237a19307763829 (diff) | |
parent | bdaeb8f23c6d5d11829072baaf0c0fe37c09f26a (diff) | |
download | u-boot-imx-aa7077fcee6cf00cde59bb9709ebd6205720f8bf.zip u-boot-imx-aa7077fcee6cf00cde59bb9709ebd6205720f8bf.tar.gz u-boot-imx-aa7077fcee6cf00cde59bb9709ebd6205720f8bf.tar.bz2 |
Merge branch 'zynq' of git://www.denx.de/git/u-boot-microblaze
Diffstat (limited to 'common/cmd_mii.c')
-rw-r--r-- | common/cmd_mii.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/cmd_mii.c b/common/cmd_mii.c index 5e9079d..7ef7532 100644 --- a/common/cmd_mii.c +++ b/common/cmd_mii.c @@ -314,6 +314,11 @@ 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) { + printf("Incorrect PHY address. Range should be 0-31\n"); + return CMD_RET_USAGE; + } + /* use current device */ devname = miiphy_get_current_dev(); |