Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY
From: Linkui Xiao
Date: Sun Nov 29 2026 - 21:50:40 EST
On 2026/11/29 00:03, Andrew Lunn wrote:
On Fri, Nov 27, 2026 at 09:47:48AM +0800, Linkui Xiao wrote:Agreed. Each round has moved more of the PHY lifecycle around (start,
From: Linkui Xiao <xiaolinkui@xxxxxxxxxx>
emac_init_phy() sets ndev->phydev by hand for a fixed link, so
phy_attach_direct() never runs. The PHY is missing from the netdev's PHY
link topology and ETHTOOL_MSG_PHY_GET dereferences the NULL link_topo in
phy_prepare_data().
The size and complexity of this change is snowballing. Without having
hardware to test on, i'm wondering if it is better to just leave it
broken. I don't think any user has reported it, so it does not bother
anybody.
What really needs to happen is a complete rewrite, and that definitely
needs hardware.
stop, disconnect, the probe unwind and the remove ordering), and I have
no 4xx hardware to check any of it, so I will not respin this one. The
rewrite is not something I can take on without access to a board.
[OPTIONAL, see notes: delete this paragraph if you do not want to
offer the alternative]
One much smaller option, in case it is of any use: the oops itself is
phy_prepare_data() in net/ethtool/phy.c doing xa_load() on a NULL
dev->link_topo. A two-line "if (!topo) return -EOPNOTSUPP;" there
would turn `ethtool --show-phys` on such a netdev into a clean error
instead of an oops, without touching emac at all. I will only send that
if you want it; otherwise I will leave the whole thing alone.
pw-bot: rejected