From: Andrew Lunn <andrew@lunn.ch>
To: Linkui Xiao <xiaolinkui@126.com>
Cc: Andrew Lunn <andrew+netdev@lunn.ch>,
netdev@vger.kernel.org, "David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rosen Penev <rosenp@gmail.com>,
Christian Lamparter <chunkeey@gmail.com>,
Jacob Keller <jacob.e.keller@intel.com>,
Kees Cook <kees+treewide@kernel.org>,
Daniel Machon <daniel.machon@microchip.com>,
Heiner Kallweit <hkallweit1@gmail.com>,
linux-kernel@vger.kernel.org, Linkui Xiao <xiaolinkui@kylinos.cn>
Subject: Re: [PATCH net v4] net: ibm: emac: attach and start the fixed-link PHY
Date: Mon, 30 Nov 2026 15:08:50 +0100 [thread overview]
Message-ID: <0bccf77f-6733-48ac-b7f3-ec9b9912a261@lunn.ch> (raw)
In-Reply-To: <27e11e9a-bff3-4f66-bac1-4cc3e10bca5a@126.com>
> [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
prev parent reply other threads:[~2026-11-30 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 1:47 Linkui Xiao
2026-11-28 2:39 ` netdev-bot+sashiko
2026-11-28 16:03 ` Andrew Lunn
2026-11-30 2:49 ` Linkui Xiao
2026-11-30 14:08 ` Andrew Lunn [this message]
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=0bccf77f-6733-48ac-b7f3-ec9b9912a261@lunn.ch \
--to=andrew@lunn.ch \
--cc=andrew+netdev@lunn.ch \
--cc=chunkeey@gmail.com \
--cc=daniel.machon@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=hkallweit1@gmail.com \
--cc=jacob.e.keller@intel.com \
--cc=kees+treewide@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=rosenp@gmail.com \
--cc=xiaolinkui@126.com \
--cc=xiaolinkui@kylinos.cn \
/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®