• Thomas Petazzoni's avatar
    net: mvmdio: add select PHYLIB · 2e0cbf2c
    Thomas Petazzoni authored
    The mvmdio driver uses the phylib API, so it should select the PHYLIB
    symbol, otherwise, a build with mvmdio (but without mvneta) fails to
    build with undefined symbols such as mdiobus_unregister, mdiobus_free,
    etc.
    
    The mvneta driver does not use the phylib API directly, so it does not
    need to select PHYLIB. It already selects the mvmdio driver anyway.
    
    Historically, this problem is due to the fact that the PHY handling
    was originally part of mvneta, and was later moved to a separate
    driver, without updating the Kconfig select statements
    accordingly. And since there was no functional reason to use mvmdio
    without mvneta, this case was not tested.
    Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
    Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2e0cbf2c
Kconfig 4.37 KB