config: colibri_vf: enable mtd partitions via dt
[oweals/u-boot.git] / cmd / mii.c
index 7ef7532a502a01c955339f28269dc3fcee342c59..c0c42a851f90f560a6b3f042d7133f854be28ec2 100644 (file)
--- a/cmd/mii.c
+++ b/cmd/mii.c
@@ -1,8 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2001
  * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 /*
@@ -314,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;
        }