net: ethernet: remove duplicated CONFIG_SUNGEM_PHY entry
Subsystems (2)
PATCH 1/1 net: ethernet: remove duplicated CONFIG_SUNGEM_PHY entry
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.
---
drivers/net/ethernet/Kconfig | 3 --- 1 file changed, 3 deletions(-)
drivers/net/ethernet/Kconfig +0 -3
@@ -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"
Signature · 1 line
2.40.1
Quoted 9 lines · Masahiro Yamada
Both
drivers/net/Kconfiganddrivers/net/ethernet/Kconfigcontain the same config entry:config
SUNGEM_PHY
tristateCommit
f860b0522f65("drivers/net:KconfigandMakefilecleanup") movedSUNGEM_PHYfromdrivers/net/Kconfigtodrivers/net/ethernet/Kconfig.
Quoted 7 lines
Shortly after it was applied, commit
19e2f6fe9601("net: Fixsungem_physharing.") added the second one todrivers/net/Kconfig.I kept the one in
drivers/net/Kconfigbecause this CONFIG option controls the compilation ofdrivers/net/sungem_phy.c.Signed-off-by Masahiro Yamada <[email protected]>
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.
Quoted 23 lines
---
drivers/net/ethernet/Kconfig | 3 --- 1 file changed, 3 deletions(-)drivers/net/ethernet/Kconfig +0
-3@@ -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"Signature · 1 line
2.40.1
Quoted 16 lines · Simon Horman
Quoted 15 lines · Masahiro Yamada
Both
drivers/net/Kconfiganddrivers/net/ethernet/Kconfigcontain the same config entry:config
SUNGEM_PHY
tristateCommit
f860b0522f65("drivers/net:KconfigandMakefilecleanup") movedSUNGEM_PHYfromdrivers/net/Kconfigtodrivers/net/ethernet/Kconfig.Shortly after it was applied, commit
19e2f6fe9601("net: Fixsungem_physharing.") added the second one todrivers/net/Kconfig.I kept the one in
drivers/net/Kconfigbecause this CONFIG option controls the compilation ofdrivers/net/sungem_phy.c.
Quoted 7 lines
Quoted 1 line
Signed-off-by Masahiro Yamada <[email protected]>Thanks Yamada-san,
This looks good to me as-is,
but I guess a follow-up question is ifsungem_phy.cshould move todrivers/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
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 10 lines · On Sun, 4 Feb 2024 21:31:51 +0900 you wrote:
Both
drivers/net/Kconfiganddrivers/net/ethernet/Kconfigcontain the same config entry:config
SUNGEM_PHY
tristateCommit
f860b0522f65("drivers/net:KconfigandMakefilecleanup") movedSUNGEM_PHYfromdrivers/net/Kconfigtodrivers/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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html