* [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS
@ 2026-03-15 16:47 Heiner Kallweit
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Heiner Kallweit @ 2026-03-15 16:47 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
David Miller, Jakub Kicinski, Mark Brown, Greg Kroah-Hartman,
Rafael J. Wysocki, Danilo Krummrich
Cc: netdev@vger.kernel.org, driver-core
MDIO-based regmap is the last user of config symbol MDIO_BUS.
MDIO access needs a MII bus, which requires PHYLIB for the provider part.
Therefore make REGMAP_MDIO depend on PHYLIB, what allows to remove
config symbol MDIO_BUS.
Heiner Kallweit (2):
regmap: mdio: make it depend on PHYLIB
net: phy: remove Kconfig sysmbol MDIO_BUS
drivers/base/regmap/Kconfig | 2 +-
drivers/net/phy/Kconfig | 6 ------
drivers/net/phy/Makefile | 2 +-
3 files changed, 2 insertions(+), 8 deletions(-)
--
2.53.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB
2026-03-15 16:47 [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS Heiner Kallweit
@ 2026-03-15 16:48 ` Heiner Kallweit
2026-03-16 0:06 ` Mark Brown
2026-03-17 23:28 ` Jakub Kicinski
2026-03-15 16:50 ` [PATCH net-next 2/2] net: phy: remove Kconfig symbol MDIO_BUS Heiner Kallweit
2026-03-19 1:40 ` [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS patchwork-bot+netdevbpf
2 siblings, 2 replies; 7+ messages in thread
From: Heiner Kallweit @ 2026-03-15 16:48 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
David Miller, Jakub Kicinski, Mark Brown, Greg Kroah-Hartman,
Rafael J. Wysocki, Danilo Krummrich
Cc: netdev@vger.kernel.org, driver-core
MDIO-based regmap is the last user of config symbol MDIO_BUS.
MDIO access needs a MII bus, which requires PHYLIB for the provider part.
Therefore make REGMAP_MDIO depend on PHYLIB, what allows to remove
config symbol MDIO_BUS in a follow-up patch.
Note: After c5a219395b4e ("regmap: Move selecting for REGMAP_MDIO and
REGMAP_IRQ") switching to "depends on" should be fine, w/o risk
of a circular dependency.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/base/regmap/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig
index 06d7eb2aac1..3c76a5bf67b 100644
--- a/drivers/base/regmap/Kconfig
+++ b/drivers/base/regmap/Kconfig
@@ -56,7 +56,7 @@ config REGMAP_W1
config REGMAP_MDIO
tristate
- select MDIO_BUS
+ depends on PHYLIB
config REGMAP_MMIO
tristate
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH net-next 2/2] net: phy: remove Kconfig symbol MDIO_BUS
2026-03-15 16:47 [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS Heiner Kallweit
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
@ 2026-03-15 16:50 ` Heiner Kallweit
2026-03-19 1:40 ` [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: Heiner Kallweit @ 2026-03-15 16:50 UTC (permalink / raw)
To: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
David Miller, Jakub Kicinski, Mark Brown, Greg Kroah-Hartman,
Rafael J. Wysocki, Danilo Krummrich
Cc: netdev@vger.kernel.org, driver-core
After usage of config symbol MDIO_BUS has been removed from REGMAP_MIO
as last user, the symbol can be removed.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
drivers/net/phy/Kconfig | 6 ------
drivers/net/phy/Makefile | 2 +-
2 files changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index 7b73332a13d..b5ee338b620 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -3,11 +3,6 @@
# PHY Layer Configuration
#
-config MDIO_BUS
- tristate "MDIO bus consumer layer"
- help
- MDIO bus consumer layer
-
config PHYLINK
tristate
select PHYLIB
@@ -19,7 +14,6 @@ config PHYLINK
menuconfig PHYLIB
tristate "PHY Device support and infrastructure"
- select MDIO_BUS
help
Ethernet controllers are usually attached to PHY
devices. This option provides infrastructure for
diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile
index 8d262b4e2be..05e4878af27 100644
--- a/drivers/net/phy/Makefile
+++ b/drivers/net/phy/Makefile
@@ -15,7 +15,7 @@ libphy-$(CONFIG_SWPHY) += swphy.o
libphy-$(CONFIG_LED_TRIGGER_PHY) += phy_led_triggers.o
libphy-$(CONFIG_OPEN_ALLIANCE_HELPERS) += open_alliance_helpers.o
-obj-$(CONFIG_MDIO_BUS) += mdio_bus.o
+obj-$(CONFIG_PHYLIB) += mdio_bus.o
obj-$(CONFIG_PHYLINK) += phylink.o
obj-$(CONFIG_PHYLIB) += libphy.o
obj-$(CONFIG_PHYLIB) += mdio_devres.o
--
2.53.0
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
@ 2026-03-16 0:06 ` Mark Brown
2026-03-17 23:28 ` Jakub Kicinski
1 sibling, 0 replies; 7+ messages in thread
From: Mark Brown @ 2026-03-16 0:06 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
David Miller, Jakub Kicinski, Greg Kroah-Hartman,
Rafael J. Wysocki, Danilo Krummrich, netdev@vger.kernel.org,
driver-core
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
On Sun, Mar 15, 2026 at 05:48:43PM +0100, Heiner Kallweit wrote:
> MDIO-based regmap is the last user of config symbol MDIO_BUS.
> MDIO access needs a MII bus, which requires PHYLIB for the provider part.
> Therefore make REGMAP_MDIO depend on PHYLIB, what allows to remove
> config symbol MDIO_BUS in a follow-up patch.
Acked-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
2026-03-16 0:06 ` Mark Brown
@ 2026-03-17 23:28 ` Jakub Kicinski
2026-03-17 23:45 ` Mark Brown
1 sibling, 1 reply; 7+ messages in thread
From: Jakub Kicinski @ 2026-03-17 23:28 UTC (permalink / raw)
To: Heiner Kallweit
Cc: Andrew Lunn, Russell King - ARM Linux, Paolo Abeni, Eric Dumazet,
David Miller, Mark Brown, Greg Kroah-Hartman, Rafael J. Wysocki,
Danilo Krummrich, netdev@vger.kernel.org, driver-core
On Sun, 15 Mar 2026 17:48:43 +0100 Heiner Kallweit wrote:
> config REGMAP_MDIO
> tristate
> - select MDIO_BUS
> + depends on PHYLIB
The REGMAP_MDIO symbol seems to have no user in the first place?
I'd have expected any driver that practically needs it to select it.
What am I missing?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB
2026-03-17 23:28 ` Jakub Kicinski
@ 2026-03-17 23:45 ` Mark Brown
0 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2026-03-17 23:45 UTC (permalink / raw)
To: Jakub Kicinski
Cc: Heiner Kallweit, Andrew Lunn, Russell King - ARM Linux,
Paolo Abeni, Eric Dumazet, David Miller, Greg Kroah-Hartman,
Rafael J. Wysocki, Danilo Krummrich, netdev@vger.kernel.org,
driver-core
[-- Attachment #1: Type: text/plain, Size: 567 bytes --]
On Tue, Mar 17, 2026 at 04:28:43PM -0700, Jakub Kicinski wrote:
> On Sun, 15 Mar 2026 17:48:43 +0100 Heiner Kallweit wrote:
> > config REGMAP_MDIO
> > tristate
> > - select MDIO_BUS
> > + depends on PHYLIB
> The REGMAP_MDIO symbol seems to have no user in the first place?
> I'd have expected any driver that practically needs it to select it.
> What am I missing?
Nothing, that's how it's supposed to work. I don't tend to block new
buses on their users being added since it just makes merging a bit more
complicated (or possibly the user has been and gone).
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS
2026-03-15 16:47 [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS Heiner Kallweit
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
2026-03-15 16:50 ` [PATCH net-next 2/2] net: phy: remove Kconfig symbol MDIO_BUS Heiner Kallweit
@ 2026-03-19 1:40 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 7+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-03-19 1:40 UTC (permalink / raw)
To: Heiner Kallweit
Cc: andrew, linux, pabeni, edumazet, davem, kuba, broonie, gregkh,
rafael, dakr, netdev, driver-core
Hello:
This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 15 Mar 2026 17:47:47 +0100 you wrote:
> MDIO-based regmap is the last user of config symbol MDIO_BUS.
> MDIO access needs a MII bus, which requires PHYLIB for the provider part.
> Therefore make REGMAP_MDIO depend on PHYLIB, what allows to remove
> config symbol MDIO_BUS.
>
> Heiner Kallweit (2):
> regmap: mdio: make it depend on PHYLIB
> net: phy: remove Kconfig sysmbol MDIO_BUS
>
> [...]
Here is the summary with links:
- [net-next,1/2] regmap: mdio: make it depend on PHYLIB
https://git.kernel.org/netdev/net-next/c/e611a97032f0
- [net-next,2/2] net: phy: remove Kconfig symbol MDIO_BUS
https://git.kernel.org/netdev/net-next/c/91283bd5b008
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-03-19 1:40 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-15 16:47 [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS Heiner Kallweit
2026-03-15 16:48 ` [PATCH net-next 1/2] regmap: mdio: make it depend on PHYLIB Heiner Kallweit
2026-03-16 0:06 ` Mark Brown
2026-03-17 23:28 ` Jakub Kicinski
2026-03-17 23:45 ` Mark Brown
2026-03-15 16:50 ` [PATCH net-next 2/2] net: phy: remove Kconfig symbol MDIO_BUS Heiner Kallweit
2026-03-19 1:40 ` [PATCH net-next 0/2] remove Kconfig sysmbol MDIO_BUS patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox