• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión27ee59af28d0a6d0430947ad3cdda6ef0e7b1189 (tree)
Tiempo2014-02-07 23:16:36
AutorAlexey Brodkin <Alexey.Brodkin@syno...>
CommiterTom Rini

Log Message

net: execute "miiphy_init" if CONFIG_PHYLIB defined

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.

Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Cambiar Resumen

Diferencia incremental

--- a/net/eth.c
+++ b/net/eth.c
@@ -279,7 +279,7 @@ int eth_initialize(bd_t *bis)
279279 eth_current = NULL;
280280
281281 bootstage_mark(BOOTSTAGE_ID_NET_ETH_START);
282-#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
282+#if defined(CONFIG_MII) || defined(CONFIG_CMD_MII) || defined(CONFIG_PHYLIB)
283283 miiphy_init();
284284 #endif
285285