From patchwork Thu Feb 15 07:00:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 201250 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp213929dyb; Wed, 14 Feb 2024 23:02:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5KyCUvaGpRAQnwCHsliJhYfBj5ej4xpzyvy2Rx67MJgScli/EfndF9NkEZgYV5i5LKvOmcWA2g33XFyW4fWePezY6Vg== X-Google-Smtp-Source: AGHT+IE9vBq3PNWwF/KqbU4wCSmwJYZEWHVcCqdgLZ5F1KiJMPHUSpbLXByCNCgOcnlp0iGtElph X-Received: by 2002:a17:906:3e17:b0:a3c:fc80:a5b9 with SMTP id k23-20020a1709063e1700b00a3cfc80a5b9mr644107eji.44.1707980579423; Wed, 14 Feb 2024 23:02:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707980579; cv=pass; d=google.com; s=arc-20160816; b=cyxNC0P9dLtGgcWT9LGdoJj6NXWANNMSM9vh2myWJ5XdRN8tFaNIX3RJwxR9ouwbhl 6OQ4iZsUCFBN2G4hxDX0s0dn7FNfFnpKV8Tj1FWW4p/EvxTKO7Bs7Geskc/LExyglLB6 Q+/hxaShwkONcBfb7THoKKlNmjdKnqzCqw6svb/wIVNsrlJRbV4KGIa+vyyqoxzDvqRl Zqkr7qwlmkQ8um2kMdRh1VGMA/8p7+dL9zRXEd9sBt8CjaiAlXxmg/eC2WHfKqd/986j IoBGMraBEddE2aFpeqLgu7Ncfd1SvaYuUyEzi61KxTypiqoDhsKLMPFpwKHLa3Pv0ypx VnkA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=6bFIvP+DXULNjZALZG/QIYQdP0Guue2+Sr22AwhwTHE=; fh=Cpl9K1bssUVDiPLDeVL30CxxRTX/eDAZyYoWOfvEQCc=; b=PQUl3rKp4d3WJ7uBuZnb18dQfMHHqH8GKN9Qi6WRaZ/iZ/hiMGNo80+3bAoVBR8T6j Lk5NL8X3cTKHyv8o4LywYKKE1C5X20XEB0adRMeqoNzddOxFTScrTKSYqygCx1ruYBgU xZ7Y4RBfkXozA+19GxK6zp/Z5u3z8ogUXs325Y7vGkEmwkSGJc/VrOLpMjG4AYrlBmLW 08Sb1CxA+iyLnFhIMR5bTKtS2HMFzgvkV5kdBAAdUPWILs1AZtHyR+jASTpazygEYn7q o46hCgWp6pFvZU+Cq/Oz2UHRytsdg3vdh7xQKN6vzDsXEFoFAUviz98xwBd5q79Kkd/h rIfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=S54J2VtP; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-66345-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66345-ouuuleilei=gmail.com@vger.kernel.org" Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dv26-20020a170906b81a00b00a3d81b825ccsi343018ejb.224.2024.02.14.23.02.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 23:02:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66345-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=S54J2VtP; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-66345-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66345-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E086C1F21CA9 for ; Thu, 15 Feb 2024 07:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 658A9125AB; Thu, 15 Feb 2024 07:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="S54J2VtP" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7BFB81078B; Thu, 15 Feb 2024 07:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707980454; cv=none; b=eJD/KTUlmxayb/vXMJT7kc4PDyz+FkWz64IVEuaSZ37BRhMCpCWUgX6MQJ5nFfu38kd0gkwcwM5/WkDqXVoanVcXWjijhnMazAujAZQgPrfyqTbxNI0bmT/DrK5IP7EBHoYhNQxrC6c57cXf/9sGHmpoRnys1qVxXJxhOAPVkx0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707980454; c=relaxed/simple; bh=Sv6TYk9A7yug+VNUx6Cx2DwkajIxr8aNySYn8ffdvJM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=icXIxACMGps2pwfvICdi74Ieg79z7ml+ts5oNdiwxscYuKYSZYFx+7+tTWg44wcTcJV65F3u66AhALLTVKVIMilPcLeX25XRaCfSE44lD6e3KlBQKvGWHhObbGrYUGZMYa27EFwW6eOUuueuglyoOxR6ryj0+tV1C7QuZ72mmCo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=S54J2VtP; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=6bFIvP+DXULNjZALZG/QIYQdP0Guue2+Sr22AwhwTHE=; b=S54J2VtPWYLCh+8UPA6yP9o3KC sglsBLmopfBfX/VDS1SDuAb5aLlDU/oryRgPoD3E5cUOec197dfYaJ4E3pNxspEg9N0UoBNA/1EQx uFlsXjkjyVIDlcIeU/qKeQRK2h7pVzm7xrRkOM3SwyhnCrqTsWcEIO+lqU/r6aLgD0TMHFAO2T/7e icomSvi4J/FfC/H9AsLzHuLPGgYnRjW8UzAFvyvhhDTWCSxo2ZBx5HuSChEs/ue7nRO2x2i02gfA9 TgYmjqGn6YRTFye5xkyVayxRPMcaycUT9y9KG1/sTD/kTcmIj8SjmpmZU/U9L8ESswg3DRJP5DmB6 qCdDcnEA==; Received: from [50.53.50.0] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.97.1 #2 (Red Hat Linux)) id 1raVjn-0000000FA2A-2NnC; Thu, 15 Feb 2024 07:00:51 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , kernel test robot , Lennart Franzen , Alexandru Tachici , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org Subject: [PATCH] net: ethernet: adi: requires PHYLIB support Date: Wed, 14 Feb 2024 23:00:50 -0800 Message-ID: <20240215070050.2389-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790947444344955170 X-GMAIL-MSGID: 1790947444344955170 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 Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402070626.eZsfVHG5-lkp@intel.com/ Cc: Lennart Franzen Cc: Alexandru Tachici Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: netdev@vger.kernel.org Reviewed-by: Nuno Sa --- drivers/net/ethernet/adi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff -- a/drivers/net/ethernet/adi/Kconfig b/drivers/net/ethernet/adi/Kconfig --- 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.