]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: phy: make mdio_device.c part of libphy
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 9 Mar 2026 17:03:31 +0000 (18:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Mar 2026 19:23:02 +0000 (12:23 -0700)
commit6df1459605cedd2112ebf660c77f42bb87d5c306
tree0b192004526fac936199af6a2f29592c02d4ee44
parent2d7bebc9dd79177f098187b0ddb0c357d4496c1c
net: phy: make mdio_device.c part of libphy

This patch
- makes mdio_device.c part of libphy
- makes mdio_device_(un)register_reset() static
- moves mdiobus_(un)register_device() from mdio_bus.c to mdio_device.c,
  stops exporting both functions and makes them private to phylib

This further decouples the MDIO consumer functionality from libphy.

Note: This makes MDIO driver registration part of phylib, therefore
      adjust Kconfig dependencies where needed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/c6dbf9b3-3ca0-434b-ad3a-71fe602ab809@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/clk/qcom/Kconfig
drivers/net/phy/Makefile
drivers/net/phy/mdio-private.h [deleted file]
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_device.c
drivers/net/phy/phylib-internal.h
drivers/phy/broadcom/Kconfig
include/linux/mdio.h