From: Tom Rini Date: Fri, 7 Feb 2014 09:21:01 -0500 Subject: [U-Boot] net: execute "miiphy_init" if CONFIG_PHYLIB defined In-Reply-To: <1389369491-9418-1-git-send-email-abrodkin@synopsys.com> References: <1389369491-9418-1-git-send-email-abrodkin@synopsys.com> Message-ID: <20140207142101.GN7049@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > > Cc: Joe Hershberger > Cc: Rob Herring > Cc: Simon Glass > Cc: Wolfgang Denk > Acked-by: Joe Hershberger 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: