[U-Boot] net: execute "miiphy_init" if CONFIG_PHYLIB defined

Tom Rini trini at ti.com
Fri Feb 7 15:21:01 CET 2014


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 <abrodkin at synopsys.com>
> 
> Cc: Joe Hershberger <joe.hershberger at ni.com>
> Cc: Rob Herring <rob.herring at calxeda.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Wolfgang Denk <wd at denx.de>
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140207/886cad46/attachment.pgp>


More information about the U-Boot mailing list