• Alexey Brodkin's avatar
    net: execute "miiphy_init" if CONFIG_PHYLIB defined · 27ee59af
    Alexey Brodkin authored
    
    
    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: default avatarJoe Hershberger <joe.hershberger@ni.com>
    Signed-off-by: default avatarAlexey Brodkin <abrodkin@synopsys.com>
    27ee59af
eth.c 11 KB