Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY

From: Andrew Lunn

Date: Mon Nov 30 2026 - 09:09:31 EST


> [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.

I say leave it alone. If anybody can trigger this, they have the
hardware. We can then propose patches and get them tested. By adding
such a test we are just hiding other broken drivers. The kernel
opps'ing can be good, it makes it clear something is broken, and the
stack trace often makes it clear where.

Andrew