All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
	Paolo Abeni <pabeni@redhat.com>, Jakub Kicinski <kuba@kernel.org>,
	David Miller <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Claudiu Manoil <claudiu.manoil@nxp.com>,
	Vladimir Oltean <vladimir.oltean@nxp.com>,
	Wei Fang <wei.fang@nxp.com>, Clark Wang <xiaoning.wang@nxp.com>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	imx@lists.linux.dev
Subject: Re: [PATCH net-next] net: phy: remove Kconfig symbol MDIO_DEVRES
Date: Wed, 7 May 2025 13:56:22 +0100	[thread overview]
Message-ID: <aBtYdq2NurrTIcJi@shell.armlinux.org.uk> (raw)
In-Reply-To: <5ecf2ece-683b-4c7b-a648-aca82d5843ed@lunn.ch>

On Wed, May 07, 2025 at 02:49:05PM +0200, Andrew Lunn wrote:
> On Wed, May 07, 2025 at 11:46:08AM +0100, Russell King (Oracle) wrote:
> > On Wed, May 07, 2025 at 08:17:17AM +0200, Heiner Kallweit wrote:
> > > MDIO_DEVRES is only set where PHYLIB/PHYLINK are set which
> > > select MDIO_DEVRES. So we can remove this symbol.
> > 
> > Does it make sense for mdio_devres to be a separate module from libphy?
> 
> I _think_ Broadcom have one MDIO bus master which is not used for
> PHYs/Switches but regulators or GPIOs or something. In theory, you
> could build a kernel without networking, but still use those
> regulators or GPIOs. But given that Broadcom SoCs are all about
> networking, it does seem like a very unlikely situation.

I'm pointing out that:

libphy-y                        := phy.o phy-c45.o phy-core.o phy_device.o \
                                   linkmode.o phy_link_topology.o \
                                   phy_package.o phy_caps.o mdio_bus_provider.o

mdio_bus_provider.o provides at least some of the functions used by
mdio_devres.

obj-$(CONFIG_PHYLIB)            += mdio_devres.o
obj-$(CONFIG_PHYLIB)            += libphy.o

So, when PHYLIB=m, we end up with mdio_devres and libphy as two separate
loadable modules. I'm questioning whether this makes any sense, or
whether making mdio_devres part of libphy would be more sensible.

Maybe the only case is if mdio_devres adds dependencies we don't want
libphy to have, but I think that needs to be spelt out in the commit.


-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

  reply	other threads:[~2025-05-07 12:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-07  6:17 [PATCH net-next] net: phy: remove Kconfig symbol MDIO_DEVRES Heiner Kallweit
2025-05-07 10:46 ` Russell King (Oracle)
2025-05-07 12:49   ` Andrew Lunn
2025-05-07 12:56     ` Russell King (Oracle) [this message]
2025-05-07 14:21       ` Heiner Kallweit
2025-05-07 18:39         ` Heiner Kallweit
2025-05-11 21:06           ` Heiner Kallweit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aBtYdq2NurrTIcJi@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=andrew@lunn.ch \
    --cc=claudiu.manoil@nxp.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=imx@lists.linux.dev \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=vladimir.oltean@nxp.com \
    --cc=wei.fang@nxp.com \
    --cc=xiaoning.wang@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.