Patch "net: ethernet: adi: requires PHYLIB support" has been added to the 6.1-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: ethernet: adi: requires PHYLIB support

to the 6.1-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-ethernet-adi-requires-phylib-support.patch
and it can be found in the queue-6.1 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7c3bab1514e02cefe9ce458103a053030f09ef07
Author: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
Date:   Wed Feb 14 23:00:50 2024 -0800

    net: ethernet: adi: requires PHYLIB support
    
    [ Upstream commit a9f80df4f51440303d063b55bb98720857693821 ]
    
    This driver uses functions that are supplied by the Kconfig symbol
    PHYLIB, so select it to ensure that they are built as needed.
    
    When CONFIG_ADIN1110=y and CONFIG_PHYLIB=m, there are multiple build
    (linker) errors that are resolved by this Kconfig change:
    
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_net_open':
       drivers/net/ethernet/adi/adin1110.c:933: undefined reference to `phy_start'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_probe_netdevs':
       drivers/net/ethernet/adi/adin1110.c:1603: undefined reference to `get_phy_device'
       ld: drivers/net/ethernet/adi/adin1110.c:1609: undefined reference to `phy_connect'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_disconnect_phy':
       drivers/net/ethernet/adi/adin1110.c:1226: undefined reference to `phy_disconnect'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `devm_mdiobus_alloc':
       include/linux/phy.h:455: undefined reference to `devm_mdiobus_alloc_size'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_register_mdiobus':
       drivers/net/ethernet/adi/adin1110.c:529: undefined reference to `__devm_mdiobus_register'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_net_stop':
       drivers/net/ethernet/adi/adin1110.c:958: undefined reference to `phy_stop'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_disconnect_phy':
       drivers/net/ethernet/adi/adin1110.c:1226: undefined reference to `phy_disconnect'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_adjust_link':
       drivers/net/ethernet/adi/adin1110.c:1077: undefined reference to `phy_print_status'
       ld: drivers/net/ethernet/adi/adin1110.o: in function `adin1110_ioctl':
       drivers/net/ethernet/adi/adin1110.c:790: undefined reference to `phy_do_ioctl'
       ld: drivers/net/ethernet/adi/adin1110.o:(.rodata+0xf60): undefined reference to `phy_ethtool_get_link_ksettings'
       ld: drivers/net/ethernet/adi/adin1110.o:(.rodata+0xf68): undefined reference to `phy_ethtool_set_link_ksettings'
    
    Fixes: bc93e19d088b ("net: ethernet: adi: Add ADIN1110 support")
    Signed-off-by: Randy Dunlap <rdunlap@xxxxxxxxxxxxx>
    Reported-by: kernel test robot <lkp@xxxxxxxxx>
    Closes: https://lore.kernel.org/oe-kbuild-all/202402070626.eZsfVHG5-lkp@xxxxxxxxx/
    Cc: Lennart Franzen <lennart@xxxxxxxxxxxx>
    Cc: Alexandru Tachici <alexandru.tachici@xxxxxxxxxx>
    Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
    Cc: Eric Dumazet <edumazet@xxxxxxxxxx>
    Cc: Jakub Kicinski <kuba@xxxxxxxxxx>
    Cc: Paolo Abeni <pabeni@xxxxxxxxxx>
    Cc: netdev@xxxxxxxxxxxxxxx
    Reviewed-by: Nuno Sa <nuno.sa@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/adi/Kconfig b/drivers/net/ethernet/adi/Kconfig
index da3bdd3025022..c91b4dcef4ec2 100644
--- a/drivers/net/ethernet/adi/Kconfig
+++ b/drivers/net/ethernet/adi/Kconfig
@@ -7,6 +7,7 @@ config NET_VENDOR_ADI
 	bool "Analog Devices devices"
 	default y
 	depends on SPI
+	select PHYLIB
 	help
 	  If you have a network (Ethernet) card belonging to this class, say Y.
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux