From: "Arnd Bergmann" <arnd@arndb.de>
To: "Daniel Golle" <daniel@makrotopia.org>,
"Arnd Bergmann" <arnd@kernel.org>
Cc: "Andrew Lunn" <andrew@lunn.ch>,
"Vladimir Oltean" <olteanv@gmail.com>,
"David S . Miller" <davem@davemloft.net>,
"Eric Dumazet" <edumazet@google.com>,
"Jakub Kicinski" <kuba@kernel.org>,
"Paolo Abeni" <pabeni@redhat.com>,
"Guenter Roeck" <linux@roeck-us.net>,
Netdev <netdev@vger.kernel.org>,
linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org
Subject: Re: [PATCH] net: dsa: MxL862xx: don't force-enable MAXLINEAR_GPHY
Date: Mon, 16 Feb 2026 13:26:15 +0100 [thread overview]
Message-ID: <5a058ebc-fb35-410b-b73f-716681c10a2f@app.fastmail.com> (raw)
In-Reply-To: <aZMKXavVQPelSXcG@makrotopia.org>
On Mon, Feb 16, 2026, at 13:15, Daniel Golle wrote:
> On Mon, Feb 16, 2026 at 11:55:17AM +0100, Arnd Bergmann wrote:
>> From: Arnd Bergmann <arnd@arndb.de>
>>
>> The newly added dsa driver attempts to enable the corresponding PHY driver,
>> but that one has additional dependencies that may not be available:
>>
>> WARNING: unmet direct dependencies detected for MAXLINEAR_GPHY
>> Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && (HWMON [=m] || HWMON [=m]=n [=n])
>> Selected by [y]:
>> - NET_DSA_MXL862 [=y] && NETDEVICES [=y] && NET_DSA [=y]
>> aarch64-linux-ld: drivers/net/phy/mxl-gpy.o: in function `gpy_probe':
>> mxl-gpy.c:(.text.gpy_probe+0x13c): undefined reference to `devm_hwmon_device_register_with_info'
>> aarch64-linux-ld: drivers/net/phy/mxl-gpy.o: in function `gpy_hwmon_read':
>> mxl-gpy.c:(.text.gpy_hwmon_read+0x48): undefined reference to `polynomial_calc'
>
> I assume this happens in case CONFIG_MAXLINEAR_GPHY=y and
> CONFIG_HWMON=m, right?
>
> None of the PHY drivers seem to adequately prevent such situations,
> which in my opinion would be worth correcting, ie. by preventing any
> PHY driver using HWMON from being built-in while CONFIG_HWMON=m.
As far as I can tell, the dependency in MAXLINEAR_GPHY does
address this correctly. We are however a bit inconsistent in
how we pick the PHY drivers in general. Almost all ethernet
drivers expect the user to enable the correct phy separately,
but there are a couple of exceptions that force a specific one:
drivers/net/dsa/Kconfig: select BCM7XXX_PHY
drivers/net/dsa/Kconfig: select MEDIATEK_GE_PHY
drivers/net/dsa/Kconfig: select VITESSE_PHY
drivers/net/dsa/realtek/Kconfig: select REALTEK_PHY
drivers/net/ethernet/8390/Kconfig: select AX88796B_PHY
drivers/net/ethernet/broadcom/Kconfig: select BCM7XXX_PHY
drivers/net/ethernet/hisilicon/Kconfig: select MARVELL_PHY
drivers/net/ethernet/hisilicon/Kconfig: select MOTORCOMM_PHY
drivers/net/ethernet/hisilicon/Kconfig: select REALTEK_PHY
drivers/net/ethernet/micrel/Kconfig: select MICREL_PHY
drivers/net/ethernet/micrel/Kconfig: select MICREL_PHY
drivers/net/ethernet/realtek/Kconfig: select REALTEK_PHY
drivers/net/ethernet/smsc/Kconfig: select SMSC_PHY
drivers/net/ethernet/stmicro/stmmac/Kconfig: select MOTORCOMM_PHY
drivers/net/ethernet/wangxun/Kconfig: select MARVELL_10G_PHY
drivers/net/usb/Kconfig: select MICROCHIP_PHY
drivers/net/usb/Kconfig: select AX88796B_PHY
drivers/net/usb/Kconfig: select SMSC_PHY
We could probably drop most or all of those as well, but that risks
regressions with existing defconfig files.
Arnd
next prev parent reply other threads:[~2026-02-16 12:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-16 10:55 Arnd Bergmann
2026-02-16 12:15 ` Daniel Golle
2026-02-16 12:26 ` Arnd Bergmann [this message]
2026-02-16 15:17 ` Guenter Roeck
2026-02-16 15:34 ` Arnd Bergmann
2026-02-16 16:20 ` Guenter Roeck
2026-02-16 16:22 ` Daniel Golle
2026-02-16 16:27 ` Arnd Bergmann
2026-02-21 1:25 ` Guenter Roeck
2026-02-21 2:05 ` Daniel Golle
2026-02-21 14:24 ` Arnd Bergmann
2026-02-18 1:20 ` patchwork-bot+netdevbpf
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=5a058ebc-fb35-410b-b73f-716681c10a2f@app.fastmail.com \
--to=arnd@arndb.de \
--cc=andrew@lunn.ch \
--cc=arnd@kernel.org \
--cc=daniel@makrotopia.org \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=kuba@kernel.org \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=pabeni@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®