]> git.dujemihanovic.xyz Git - u-boot.git/commit
common: mii: Do not allow to exceed max phy limit
authorMichal Simek <michal.simek@xilinx.com>
Mon, 19 Oct 2015 13:13:34 +0000 (15:13 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 19 Nov 2015 13:03:05 +0000 (14:03 +0100)
commitbdaeb8f23c6d5d11829072baaf0c0fe37c09f26a
tree65233cb93028867ac8bbc3b893dac3bcabd490d5
parentf3bd72801aade1eb74e153bfa57c26f327571475
common: mii: Do not allow to exceed max phy limit

Phy can have addresses 0-31. Check this boundary to ensure that user
can't call commands on phy address 32 and more.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/cmd_mii.c