[PATCH v2 net-next 2/5] net: phy: make mdio_device.c part of libphy

Paolo Abeni pabeni at redhat.com
Thu Mar 12 04:06:09 PDT 2026


On 3/9/26 6:03 PM, Heiner Kallweit wrote:
> 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 at gmail.com>
> ---
> v2:
> - add needed Kconfig dependency changes
> ---
>  drivers/clk/qcom/Kconfig          |  2 +-
>  drivers/net/phy/Makefile          |  6 ++---
>  drivers/net/phy/mdio-private.h    | 11 ---------
>  drivers/net/phy/mdio_bus.c        | 36 ----------------------------
>  drivers/net/phy/mdio_device.c     | 39 ++++++++++++++++++++++++++++---
>  drivers/net/phy/phylib-internal.h |  4 ++++
>  drivers/phy/broadcom/Kconfig      |  4 ++--
>  include/linux/mdio.h              |  2 --
>  8 files changed, 46 insertions(+), 58 deletions(-)
>  delete mode 100644 drivers/net/phy/mdio-private.h
> 
> diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
> index a8a86ea6bb7..a277c434d64 100644
> --- a/drivers/clk/qcom/Kconfig
> +++ b/drivers/clk/qcom/Kconfig
> @@ -392,7 +392,7 @@ config IPQ_NSSCC_9574
>  
>  config IPQ_NSSCC_QCA8K
>  	tristate "QCA8K(QCA8386 or QCA8084) NSS Clock Controller"
> -	depends on MDIO_BUS
> +	depends on PHYLIB
>  	help
>  	  Support for NSS(Network SubSystem) clock controller on
>  	  qca8386/qca8084 chip.

Bjorn, Micahel, Stephen: are you ok with this change?

Thanks,

Paolo




More information about the linux-phy mailing list