Message ID | 20240204123151.55005-1-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp326720dyb; Sun, 4 Feb 2024 04:32:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbx5VSah40Emzag5kdRG3H55GJbeDBH584zue+NMnSqJRqbCdenfhxUNhUFePtDgTKS+Kf X-Received: by 2002:a17:90a:eb92:b0:295:b3ec:2cf7 with SMTP id o18-20020a17090aeb9200b00295b3ec2cf7mr8920208pjy.48.1707049962818; Sun, 04 Feb 2024 04:32:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707049962; cv=pass; d=google.com; s=arc-20160816; b=HpjqRa0A/LMZS9VFQ0AtM2iKS8dcJN0I5ESuRBre9DM4QdaOKeE62E148cFfkXCFT4 Wp+vRbelHRcluL8FFxENukHU3lPMoQK6H4ovOXZXPTYI8nebFsmTI6wFQ54Zbe+PtE7T MPWPqKueKkKXmJqoY8nqx4kfEubR89eMLxN8fHRtAUgoEnxA9TzvxDFUXCO7N7n2Pzev mEIYpHcAEKmvHmLxAmsV6AXZt8RsZJUi6iw/riWlzY6LKSrlctEgPdbsomCatsG66xF+ /UfUvEuCYRadjpXfyBf7xZoWvK05tJh1hxJV8YMVXW1ybNOHgExbvQv3DNPWI062U7RB oF/w== 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=8WelaJP14EL3Bm/92vJoco60K5CbgBhLwa6dhhxd+Nk=; fh=QyuKGYfXkSeWwU4i5PEW6HSjAbfye25fL6YFttDEMzU=; b=L6Jqk2P7ClEUpmKG6VAFOR8UUp6ErtC0AdSOoHf1o0Og3CzMcVt5bwiYTI5za5LomU +UqdACsBSh1trHfieKyKixcd5uuQ0sV+XxgyS+JcoBuUCqZEYzHUedaGzrZVIceAgcVq fAfF6/P+xwFJNDzWJpm4HetFbg0XhlkTJR0nlp/0koodxwjE/da5+FGZINMOgh3lF6iF clMrcveDryv5GY/EPVK4HcXbR/Fky0NhOzyoVWSd6Cl8lWr9+dxaAtFA0jurphuMKRKp ecTZNDNFWVL6aWuxas8gxe0B3SCzUgN3TxfTFLHaVUBG7J9vvGzSH3iyHIGj1Rs8Tgtm Xt9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIq4csWA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUZ/gfK6tMM7sEa6dbiqgYzukQQmbXvfp+y8FbKhi9h1juEtc306ApmOsFy7+ftrFPheDzSQCIpKFLF53JRPEsqI+Nz9A== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m2-20020a170902db0200b001d94a0198dasi4797469plx.68.2024.02.04.04.32.42 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 04:32:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIq4csWA; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51637-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id E6DCF2809E5 for <ouuuleilei@gmail.com>; Sun, 4 Feb 2024 12:32:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C98225A9; Sun, 4 Feb 2024 12:31:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="nIq4csWA" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 B59FA1642F; Sun, 4 Feb 2024 12:31:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707049916; cv=none; b=GeDvXFZDezAO/YN+MchVuRQVA/989vHNsaEWTVsezIxTB76nulTlWPr0bk4v6LjrL0D+H44KAlp7lrv06+bvDjwg4MizXOavEOUgdDg92OHTbT8dTG1wPywlp7LVdjEKoAhLoIl4hV++vz+MznsgXOYnnYyU++6eqFglXYZUIJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707049916; c=relaxed/simple; bh=vDBDZYzI/5OSxWeet1wmyNK83emKECxcsNO1ezZ40ak=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=X7nEPnGletoXXivc6Eoe7TFHX/KQw+QOWbrwbifuvDtzMmmbY4dunlm84GZwUbv7CJxWew7FsbmuH+ivH2rwcpiaxRXiSgXrV1GNeGFmLgdo0bJikpJZLzYr1f+jmAzlSZUNBMsDEn3pQyQ1ka62ptJZxm4Q3cpPUsrKoKJC+5Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=nIq4csWA; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 021A1C433C7; Sun, 4 Feb 2024 12:31:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707049916; bh=vDBDZYzI/5OSxWeet1wmyNK83emKECxcsNO1ezZ40ak=; h=From:To:Cc:Subject:Date:From; b=nIq4csWA1HUpfBdPjf1xAVT22cLtTusYfNrZQUKZiX7VWI4PQZc/YRPbRVCsVC2iZ gopPQRr21Z9X3pfQ8QYHRWPbdrQqG3gz0m0XwGBs3AAdQdh2CEoAxrPZYPYcqvImsY V+6NabFIAaIdKH8IDU6Vf/oEi+HTtzPq74ynVFsB685Aj7Q/x89C/b6gik+UBuTq7A co+RrTjYt1MkvbhLIu73kxi17Hd6IEbrdYk1jpLKnIbBv3epWxkDLHKZuKWYZ9OxnM BEiFL4j4Lm2g6gnfFd/Da5So8vcNhit24p+cqjnuHy1A66q1aWMBipVP1yO1znM3q7 D7dQY70gLVueQ== From: Masahiro Yamada <masahiroy@kernel.org> To: "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org Cc: Masahiro Yamada <masahiroy@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: remove duplicated CONFIG_SUNGEM_PHY entry Date: Sun, 4 Feb 2024 21:31:51 +0900 Message-Id: <20240204123151.55005-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789971621841142815 X-GMAIL-MSGID: 1789971621841142815 |
Series |
net: ethernet: remove duplicated CONFIG_SUNGEM_PHY entry
|
|
Commit Message
Masahiro Yamada
Feb. 4, 2024, 12:31 p.m. UTC
Both drivers/net/Kconfig and drivers/net/ethernet/Kconfig contain the
same config entry:
config SUNGEM_PHY
tristate
Commit f860b0522f65 ("drivers/net: Kconfig and Makefile cleanup") moved
SUNGEM_PHY from drivers/net/Kconfig to drivers/net/ethernet/Kconfig.
Shortly after it was applied, commit 19e2f6fe9601 ("net: Fix sungem_phy
sharing.") added the second one to drivers/net/Kconfig.
I kept the one in drivers/net/Kconfig because this CONFIG option controls
the compilation of drivers/net/sungem_phy.c.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
drivers/net/ethernet/Kconfig | 3 ---
1 file changed, 3 deletions(-)
Comments
On Sun, Feb 04, 2024 at 09:31:51PM +0900, Masahiro Yamada wrote: > Both drivers/net/Kconfig and drivers/net/ethernet/Kconfig contain the > same config entry: > > config SUNGEM_PHY > tristate > > Commit f860b0522f65 ("drivers/net: Kconfig and Makefile cleanup") moved > SUNGEM_PHY from drivers/net/Kconfig to drivers/net/ethernet/Kconfig. > > Shortly after it was applied, commit 19e2f6fe9601 ("net: Fix sungem_phy > sharing.") added the second one to drivers/net/Kconfig. > > I kept the one in drivers/net/Kconfig because this CONFIG option controls > the compilation of drivers/net/sungem_phy.c. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Thanks Yamada-san, This looks good to me as-is, but I guess a follow-up question is if sungem_phy.c should move to drivers/net/phy. Reviewed-by: Simon Horman <horms@kernel.org> > --- > > drivers/net/ethernet/Kconfig | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig > index 5a274b99f299..6a19b5393ed1 100644 > --- a/drivers/net/ethernet/Kconfig > +++ b/drivers/net/ethernet/Kconfig > @@ -15,9 +15,6 @@ if ETHERNET > config MDIO > tristate > > -config SUNGEM_PHY > - tristate > - > source "drivers/net/ethernet/3com/Kconfig" > source "drivers/net/ethernet/actions/Kconfig" > source "drivers/net/ethernet/adaptec/Kconfig" > -- > 2.40.1 > >
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: On Sun, 4 Feb 2024 21:31:51 +0900 you wrote: > Both drivers/net/Kconfig and drivers/net/ethernet/Kconfig contain the > same config entry: > > config SUNGEM_PHY > tristate > > Commit f860b0522f65 ("drivers/net: Kconfig and Makefile cleanup") moved > SUNGEM_PHY from drivers/net/Kconfig to drivers/net/ethernet/Kconfig. > > [...] Here is the summary with links: - net: ethernet: remove duplicated CONFIG_SUNGEM_PHY entry https://git.kernel.org/netdev/net-next/c/81f61c108838 You are awesome, thank you!
On Tue, Feb 06, 2024 at 05:41:30PM +0000, Simon Horman wrote: > On Sun, Feb 04, 2024 at 09:31:51PM +0900, Masahiro Yamada wrote: > > Both drivers/net/Kconfig and drivers/net/ethernet/Kconfig contain the > > same config entry: > > > > config SUNGEM_PHY > > tristate > > > > Commit f860b0522f65 ("drivers/net: Kconfig and Makefile cleanup") moved > > SUNGEM_PHY from drivers/net/Kconfig to drivers/net/ethernet/Kconfig. > > > > Shortly after it was applied, commit 19e2f6fe9601 ("net: Fix sungem_phy > > sharing.") added the second one to drivers/net/Kconfig. > > > > I kept the one in drivers/net/Kconfig because this CONFIG option controls > > the compilation of drivers/net/sungem_phy.c. > > > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > > Thanks Yamada-san, > > This looks good to me as-is, > but I guess a follow-up question is if sungem_phy.c > should move to drivers/net/phy. It is not a phylib PHY driver. So i would say no. It would however be nice to port the MAC drivers using this to phylib. The PHY devices this sungem_phy.c supports don't look particularly exotic, just Marvell and Broadcom PHYs which phylib probably already supports. Andrew
diff --git a/drivers/net/ethernet/Kconfig b/drivers/net/ethernet/Kconfig index 5a274b99f299..6a19b5393ed1 100644 --- a/drivers/net/ethernet/Kconfig +++ b/drivers/net/ethernet/Kconfig @@ -15,9 +15,6 @@ if ETHERNET config MDIO tristate -config SUNGEM_PHY - tristate - source "drivers/net/ethernet/3com/Kconfig" source "drivers/net/ethernet/actions/Kconfig" source "drivers/net/ethernet/adaptec/Kconfig"