On Fri, Jan 10, 2014 at 07:58:11PM +0400, Alexey Brodkin wrote:

> In "common/Makefile" "miiphyutil.o" gets built if any of the following
> items enabled:
>  * CONFIG_PHYLIB
>  * CONFIG_MII
>  * CONFIG_CMD_MII
> 
> So it's possible to not define CONFIG_MII or CONFIG_CMD_MII and still
> use functions like "miiphy_get_dev_by_name".
> 
> In its turn "miiphy_get_dev_by_name" traverses "mii_devs" list which is
> not initialized because "miiphy_init" never got called.
> 
> Signed-off-by: Alexey Brodkin <abrod...@synopsys.com>
> 
> Cc: Joe Hershberger <joe.hershber...@ni.com>
> Cc: Rob Herring <rob.herr...@calxeda.com>
> Cc: Simon Glass <s...@chromium.org>
> Cc: Wolfgang Denk <w...@denx.de>
> Acked-by: Joe Hershberger <joe.hershber...@ni.com>

Applied to u-boot/master, thanks!

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to