From: Heiner Kallweit Date: Sun, 15 Mar 2026 16:48:43 +0000 (+0100) Subject: regmap: mdio: make it depend on PHYLIB X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e611a97032f0fa484d14656acf4a330448bf21a3;p=thirdparty%2Fkernel%2Flinux.git regmap: mdio: make it depend on PHYLIB 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 Acked-by: Mark Brown Link: https://patch.msgid.link/a21a3b3e-272e-4c61-986e-48a2cb3421d9@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/base/regmap/Kconfig b/drivers/base/regmap/Kconfig index 06d7eb2aac14..3c76a5bf67b7 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