Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp42850lqo; Wed, 15 May 2024 20:34:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWw091Ue57r4E78x2caN/UcWrwzL0B3tglXusLCkkWS4pcC7p0wgFw9qGTbW5c5A18kYxOmWSeIfOU/bx2G/2OMJY0YyFbp3F61cRxjeQ== X-Google-Smtp-Source: AGHT+IHLYa+utEEwWBLszln79QCbQQEsfEbhLEWBOX1EwkDhMjN8wmfGhQptLHulIf1T/eReHTZ3 X-Received: by 2002:a05:6102:b0d:b0:47e:f719:cbd2 with SMTP id ada2fe7eead31-48077db4ab1mr18444152137.7.1715830450218; Wed, 15 May 2024 20:34:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715830450; cv=pass; d=google.com; s=arc-20160816; b=HhLqPWU8OeRaHIazqdGMDZBgH7GGWDrw/X7Lz0CVy+yPd+x7vLBVyJSZLgTVg6Ncdq Oii22Zb4lBNLE618E7DdXQtUptc5nvs5kMp/rtezi0m3DfxwQSfXOGdcrEy7Db0+0GEh C3Z4ucUelrJSbAQhFq1AvCcj9ZIqkfJGvBHVndEOUPIMJYEE1NEZryK7vLqbH8yTJ1x/ m/komMu6fZlbLt+rtTAu/27W0rvE9OHG0BGlYi51gPGHnDkaOVWE+YQfPCaJRueg/PVj 5USbmTxQpjQ4S5bG/O6XfqXgCO3TCGVQ0QPFn4Z/OzfBRUSyxbuwGcugCJYePNJzHbGi VH+Q== 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:dkim-filter; bh=SH4UrNQNBfFfIQvF48bFx8JBAFHacDqi9FvGR2lLIxA=; fh=vCPRaAaj4SfYi299ACohkFBA6zCH0RHVbdl5dok0MJk=; b=SeUN6izuEAnIkLmyxUdt2lefRM9+u+GtUja8sHddGbc/HD4LnJ63EXBTA1aRtAHTQK YisRcDPWBgBlYLprC+DeTVpfB7sH/sTKc9+hKJpNi2tWn6EAIebuJZqhcJ3FSNHePbKg nKGXjdnRiyJN6hN8WdXlzzW7E/fMc40LR0viop+swBn+lKrQddD0pjW2AEePiHXXlSeP Ci4Q3XVfKjV4rxVWUOcmrIg8lqGxLFuo6qzjJk/Y6aJr6BmKI9bJI/ZLpr8EgF12VMtz Bha1/EEY64IwrXknc/YkpQrmJQA+9xUHGbIUi4sD6VYpBABBocgh2G9zd77nfrsBUv4s F+pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=vlijCOyx; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-180603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43e0a8d8a08si117658211cf.298.2024.05.15.20.34.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 20:34:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=vlijCOyx; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-180603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EC4C91C22442 for ; Thu, 16 May 2024 03:34:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D1154A1B; Thu, 16 May 2024 03:34:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="vlijCOyx" Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.207]) (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 D75814411; Thu, 16 May 2024 03:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715830441; cv=none; b=fyVTJ91MtuNDSi2PjmMSe4wgPto1+DaaZhfsxBk/40cBp4rawqht9ok80nd9Gp4iHkKVsj+hBwKru2N4PX/oP8we7ISYbFY2SCkTQei+U3zhu61OHK37nHB5a0xRYWxNu1G05lKk16kc6xb83v6nA8ZzxOJCwTvniGUBHKv8uhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715830441; c=relaxed/simple; bh=EhOfJamrX1GR0p/9hZ+xovyjdb1m8SmtOvrT3d8NEXY=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Gf8x9PDRPAqk4DqMXi8oUyxfMD5fsZV7MX/cznkIJlvuCM62Vl2jdSWilYnnDNE/hMChFFwNURRFhmI3ZtGXF/amhF9fvQNNXcwy16RNfYINMVWDEVJT4pDeJOPWP13+GO5QEJqpCeqtqAzuGM1kpKRhDD+aj0o17Iwlnnenbws= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=vlijCOyx; arc=none smtp.client-ip=192.19.144.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 3AFBCC0000D8; Wed, 15 May 2024 20:33:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 3AFBCC0000D8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1715830435; bh=EhOfJamrX1GR0p/9hZ+xovyjdb1m8SmtOvrT3d8NEXY=; h=From:To:Cc:Subject:Date:From; b=vlijCOyx8JATzmAmOCZ1JjpwQgpmZemiUVxXK68dIcLah3OK/EBvQ8rtzny+4gLw+ ZPVDk4Wt5lWa10qjIDdu6GIWxPVGi0OJWajntteex5S4cWyaQO1OD18boXBV3vQ1w3 G8a7q68nmb5m2NnH5X3wVssai+9o12GtVDBecNtg= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 38BFA18041CAC4; Wed, 15 May 2024 20:33:53 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: masahiroy@kernel.org, aleksander.lobakin@intel.com, Florian Fainelli , Stephen Langstaff , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexander Lobakin , Florian Fainelli , Vladimir Oltean , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net] net: Always descend into dsa/ folder Date: Wed, 15 May 2024 20:33:45 -0700 Message-Id: <20240516033345.1813070-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Stephen reported that he was unable to get the dsa_loop driver to get probed, and the reason ended up being because he had CONFIG_FIXED_PHY=y in his kernel configuration. As Masahiro explained it: "obj-m += dsa/" means everything under dsa/ must be modular. If there is a built-in object under dsa/ with CONFIG_NET_DSA=m, you cannot do "obj-$(CONFIG_NET_DSA) += dsa/". You need to change it back to "obj-y += dsa/". This was the case here whereby CONFIG_NET_DSA=m, and so the obj-$(CONFIG_FIXED_PHY) += dsa_loop_bdinfo.o rule is not executed and the DSA loop mdio_board info structure is not registered with the kernel, and eventually the device is simply not found. Fixes: 227d72063fcc ("dsa: simplify Kconfig symbols and dependencies") Reported-by: Stephen Langstaff Signed-off-by: Florian Fainelli --- drivers/net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/Makefile b/drivers/net/Makefile index 9c053673d6b2..0f6f0f091e0e 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -49,7 +49,7 @@ obj-$(CONFIG_MHI_NET) += mhi_net.o obj-$(CONFIG_ARCNET) += arcnet/ obj-$(CONFIG_CAIF) += caif/ obj-$(CONFIG_CAN) += can/ -obj-$(CONFIG_NET_DSA) += dsa/ +obj-y += dsa/ obj-$(CONFIG_ETHERNET) += ethernet/ obj-$(CONFIG_FDDI) += fddi/ obj-$(CONFIG_HIPPI) += hippi/ -- 2.34.1